import OLBadge from '@/shared/components/ol/ol-badge' import MaterialIcon from '@/shared/components/material-icon' import { useTranslation } from 'react-i18next' export default function IntegrationCard({ href, onClick, title, description, icon, showPaywallBadge, }: { href?: string onClick?: () => void title: string description: string icon: React.ReactNode showPaywallBadge: boolean }) { const { t } = useTranslation() const content = (
{icon}
{title}
{showPaywallBadge && ( } bg="light" className="integrations-panel-card-premium-badge" > {t('premium')} )}

{description}

) if (href) { return ( {content} ) } return ( ) }