= ({
setEditorRedesignStatus,
hide,
loading,
}) => {
const { t } = useTranslation()
const enable = useCallback(() => {
setEditorRedesignStatus(true)
.then(hide)
.catch(() => {
// do nothing, we're already showing the error
})
}, [setEditorRedesignStatus, hide])
return (
<>
{t('help_shape_the_future_of_overleaf')}
{t('were_redesigning_our_editor_to_make_it_easier_to_use')}
{t('cancel')}
{t('switch_to_new_editor')}
>
)
}
const SwitcherWhatsNew = () => {
const { t } = useTranslation()
return (
{t('whats_new')}
- {t('chat')}
- {t('settings_for_git_github_and_dropbox_integrations')}
- {t('dark_mode')}
{t('whats_next')}
- {t('history')}
- {t('review_panel_comments_and_track_changes')}
)
}
const LeavingNote = () => {
return (
]}
shouldUnescape
tOptions={{ interpolation: { escapeValue: true } }}
/>
)
}