= ({
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('new_look_and_feel')}
-
{t('new_navigation_introducing_left_hand_side_rail_and_top_menus')}
- {t('new_look_and_placement_of_the_settings')}
- {t('improved_dark_mode')}
- {t('review_panel_and_error_logs_moved_to_the_left')}
{t('whats_next')}
- {t('more_changes_based_on_your_feedback')}
)
}
const LeavingNote = () => {
return (
]}
shouldUnescape
tOptions={{ interpolation: { escapeValue: true } }}
/>
)
}