import { useTranslation } from 'react-i18next' import { useEditorContext } from '../../../shared/context/editor-context' import StartFreeTrialButton from '../../../shared/components/start-free-trial-button' import { memo } from 'react' import PdfLogEntry from './pdf-log-entry' import UpgradeBenefits from '../../../shared/components/upgrade-benefits' function TimeoutUpgradePrompt() { const { t } = useTranslation() const { hasPremiumCompile, isProjectOwner } = useEditorContext() if (!window.ExposedSettings.enableSubscriptions || hasPremiumCompile) { return null } return (

{t('free_accounts_have_timeout_upgrade_to_increase')}

{t('plus_upgraded_accounts_receive')}:

{isProjectOwner && (

)} } entryAriaLabel={ isProjectOwner ? t('upgrade_for_longer_compiles') : t('ask_proj_owner_to_upgrade_for_longer_compiles') } level="success" /> ) } export default memo(TimeoutUpgradePrompt)