import FormValidator from "../../../../utils/form-validator" import { NestedForm } from "../../../../utils/nested-form" import InputField from "../../../molecules/input" import TextArea from "../../../molecules/textarea" export type GeneralFormType = { title: string subtitle: string | null handle: string material: string | null description: string | null } type Props = { form: NestedForm requireHandle?: boolean isGiftCard?: boolean } const GeneralForm = ({ form, requireHandle = true, isGiftCard }: Props) => { const { register, path, formState: { errors }, } = form return (

Give your {isGiftCard ? "gift card" : "product"} a short and clear title.
50-60 characters is the recommended length for search engines.