import {ErrorBoundary, Loading, Modal, ModalBtnGroup} from '@components'; import {FC, Suspense} from 'react'; import ReactModal from 'react-modal'; import {useFormState} from './hooks'; import UserModalInfo from './Info'; import {FormProvider} from 'react-hook-form'; const style: ReactModal.Styles = { content: { width: '650px', height: '600px', }, }; type Props = { visible: boolean; id: string; onClose: () => void; onFetch: () => void; }; const UserModal: FC = function({visible, onClose, onFetch, id}) { const [{isLoading, formInstance}, {onSubmit}] = useFormState({ onClose, onFetch, id, visible, }); return ( }> ); }; export default UserModal;