import { useActionState } from "react"; import { LuSend } from "react-icons/lu"; import Section from "#/components/Section.tsx"; import { useToastStateChange } from "#/hooks/useToastStateChange.ts"; interface IFormField { fieldName: string; type: "text" | "email" | "textarea"; placeholder: string; required?: boolean; textarea?: boolean; } type IProps = { handleSubmit: ( prevState: unknown, formData: FormData, ) => Promise<{ success: boolean; message: string }>; }; const FormField = ({ type, fieldName, placeholder, required = false, textarea = false, }: IFormField) => (