import { motion } from "motion/react"; type InputField = { name: string; type: string; placeholder: string; required?: boolean; }; type TextareaField = { name: string; placeholder: string; rows?: number; required?: boolean; }; type ContactSplitFormProps = { tag: string; title: string; description: string; inputs: InputField[]; textarea?: TextareaField; buttonText: string; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); const ContactSplitForm = ({ tag, title, description, inputs, textarea, buttonText, imageSrc, videoSrc, }: ContactSplitFormProps) => { return (
{tag} {title} {description}
{inputs.map((input) => ( ))} {textarea && (