2023-12-14 06:06:36 -05:00
|
|
|
import { FC } from 'react'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
2024-10-11 05:23:33 -04:00
|
|
|
import OLModal, {
|
|
|
|
OLModalBody,
|
|
|
|
OLModalHeader,
|
|
|
|
OLModalTitle,
|
|
|
|
} from '@/features/ui/components/ol/ol-modal'
|
2023-12-14 06:06:36 -05:00
|
|
|
|
|
|
|
export const UnsavedDocsLockedModal: FC = () => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
return (
|
2024-10-11 05:23:33 -04:00
|
|
|
<OLModal
|
2024-01-03 06:12:50 -05:00
|
|
|
show
|
2023-12-14 06:06:36 -05:00
|
|
|
onHide={() => {}} // It's not possible to hide this modal, but it's a required prop
|
|
|
|
className="lock-editor-modal"
|
|
|
|
backdrop={false}
|
|
|
|
keyboard={false}
|
|
|
|
>
|
2024-10-11 05:23:33 -04:00
|
|
|
<OLModalHeader>
|
|
|
|
<OLModalTitle>{t('connection_lost')}</OLModalTitle>
|
|
|
|
</OLModalHeader>
|
|
|
|
<OLModalBody>
|
|
|
|
{t('sorry_the_connection_to_the_server_is_down')}
|
|
|
|
</OLModalBody>
|
|
|
|
</OLModal>
|
2023-12-14 06:06:36 -05:00
|
|
|
)
|
|
|
|
}
|