import { FormContainerProps } from '@lib/plume-admin-theme/form/FormProps'; import { PropsWithChildren } from 'react'; import { FieldValues, FormContainer as MuiFormContainer, } from 'react-hook-form-mui'; import './forms.module.scss'; function FormContainer( { handleSubmit, children, FormProps, formContext, onSuccess, onError, }: PropsWithChildren>, ) { return ( formContext={formContext} onSuccess={onSuccess} onError={onError} FormProps={FormProps} handleSubmit={handleSubmit} > {children} ); } export default FormContainer;