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

{headingText}

{FormComponent}
); }; export default FormPageLayout;