unsaved-docs-locked-alert.tsx 497 B

12345678910111213141516171819
  1. import { FC } from 'react'
  2. import { useTranslation } from 'react-i18next'
  3. import OLNotification from '@/features/ui/components/ol/ol-notification'
  4. export const UnsavedDocsLockedAlert: FC = () => {
  5. const { t } = useTranslation()
  6. return (
  7. <OLNotification
  8. type="warning"
  9. content={
  10. <>
  11. <strong>{t('connection_lost_with_unsaved_changes')}</strong>{' '}
  12. {t('dont_reload_or_close_this_tab')} {t('your_changes_will_save')}
  13. </>
  14. }
  15. />
  16. )
  17. }