1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Modal } from 'react-bootstrap';
4 import { useTranslation } from 'react-i18next';
6 import Loading from '../common/Loading';
7 import LanguageSwitcher from '../../app/LanguageSwitcher';
9 const Form = React.lazy(() => import('./Form'));
18 const { t } = useTranslation();
20 return <Modal onHide={onHide} show={show} size="lg">
21 <Modal.Header closeButton>
25 <div className="mx-3">
29 <React.Suspense fallback={<Loading />}>
41 content: PropTypes.shape({
43 language: PropTypes.string,
44 onHide: PropTypes.func,
45 onSubmit: PropTypes.func,
49 export default Dialog;