'use client'; import CustomInput from '@/components/CustomInput'; import Button from '../Button'; import { FormEvent, useState } from 'react'; const ContactForm = () => { const [input, setInput] = useState({ name: '', email: '', message: '', topic: '', }); return (
e.preventDefault()}> setInput({ ...input, name: value }), }} name="name" label="Ady" placeholder="Aman Amanow" type="text" /> setInput({ ...input, email: value }), }} name="email" label="E-mail" placeholder="meselem@gmail.com" type="email" /> setInput({ ...input, message: value }), }} name="message" label="Hat" placeholder="Hat" isTextArea /> setInput({ ...input, topic: value }), }} name="topic" label="Mowzuk" placeholder="Mowzuk" type="text" /> {/* */}