import Notification from '@/shared/components/notification' import StartFreeTrialButton from '@/shared/components/start-free-trial-button' import { Trans, useTranslation } from 'react-i18next' import * as eventTracking from '@/infrastructure/event-tracking' import { FC } from 'react' export const CompileTimeoutChangingSoon: FC<{ isProjectOwner?: boolean handleDismissChangingSoon: () => void segmentation?: eventTracking.Segmentation }> = ({ isProjectOwner = false, handleDismissChangingSoon, segmentation }) => { const { t } = useTranslation() const sendInfoClickEvent = () => { eventTracking.sendMB('paywall-info-click', { 'paywall-type': 'compile-time-warning', ...segmentation, content: 'blog', }) } const compileTimeoutChangesBlogLink = ( /* eslint-disable-next-line jsx-a11y/anchor-has-content */ ) const fixingCompileTimeoutsLearnLink = ( /* eslint-disable-next-line jsx-a11y/anchor-has-content */ ) if (isProjectOwner) { return ( {t('start_free_trial_without_exclamation')} } ariaLive="polite" content={

{' '} }} />

} title={t('your_project_compiled_but_soon_might_not')} type="warning" isActionBelowContent isDismissible onDismiss={handleDismissChangingSoon} /> ) } return (

{' '}

, ]} />

} title={t('this_project_compiled_but_soon_might_not')} type="warning" isDismissible onDismiss={handleDismissChangingSoon} /> ) }