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' import { useSplitTestContext } from '@/shared/context/split-test-context' 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 { splitTestVariants } = useSplitTestContext() const hasNewPaywallCta = splitTestVariants['paywall-cta'] === 'enabled' 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 ( {hasNewPaywallCta ? t('get_more_compile_time') : 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} /> ) }