2023-12-14 06:06:36 -05:00
|
|
|
import { FC } from 'react'
|
|
|
|
import { Modal } from 'react-bootstrap'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
import AccessibleModal from '@/shared/components/accessible-modal'
|
|
|
|
|
|
|
|
export const UnsavedDocsLockedModal: FC = () => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<AccessibleModal
|
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}
|
|
|
|
>
|
|
|
|
<Modal.Header>
|
|
|
|
<Modal.Title>{t('connection_lost')}</Modal.Title>
|
|
|
|
</Modal.Header>
|
|
|
|
<Modal.Body>{t('sorry_the_connection_to_the_server_is_down')}</Modal.Body>
|
|
|
|
</AccessibleModal>
|
|
|
|
)
|
|
|
|
}
|