import { ReactNode, FC } from 'react'; import { IconType } from 'react-icons'; interface FormPageLayoutProps { children: ReactNode; headingText: string; headingIcon: IconType; } const FormPageLayout: FC = ({ children: FormComponent, headingIcon, headingText, }) => { return (
{headingIcon({ className: 'text-4xl' })}

{headingText}

{FormComponent}
); }; export default FormPageLayout;