import React from 'react'; import cn from 'classnames'; import { Icon } from 'UI'; import { useTranslation } from 'react-i18next'; interface Props { integration: any; onClick?: (e: React.MouseEvent) => void; integrated?: boolean; hide?: boolean; useIcon?: boolean; } function IntegrationItem(props: Props) { const { t } = useTranslation(); const { integration, integrated, hide = false, useIcon } = props; return hide ? null : (
props.onClick(e)} style={{ height: '136px' }} >
{useIcon ? ( ) : ( integration )}

{integration.title}

{integration.subtitle && integration.subtitle}

{integrated && (
{t('Integrated')}
)}
); } export default IntegrationItem;