import ModalDialog from '@givewp/components/AdminUI/ModalDialog'; import ErrorMessages from './ErrorMessages'; import styles from './FormModal.module.scss'; /** * Form Modal component that renders a modal with a styled form inside * * @since 3.6.0 */ export default function FormModal({ isOpen, handleClose, title, handleSubmit, errors, className, children, }: FormModalProps) { return (
{children}
); } interface FormModalProps { isOpen: boolean; handleClose: () => void; title: string; handleSubmit: (e: React.FormEvent) => void; errors: Record; className: string; children: JSX.Element | JSX.Element[]; }