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' const sendInfoClickEvent = () => { eventTracking.sendMB('paywall-info-click', { 'paywall-type': 'compile-time-warning', content: 'blog', }) } export const CompileTimeoutChangingSoon: FC<{ isProjectOwner?: boolean handleDismissChangingSoon: () => void }> = ({ isProjectOwner = false, handleDismissChangingSoon }) => { const { t } = useTranslation() const compileTimeoutBlogLinks = [ /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */ , /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */ , ] 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} /> ) }