import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Textarea } from "@/components/ui/textarea"; import { toast } from "sonner"; export const PetitionForm = () => { const [formData, setFormData] = useState({ name: "", email: "", comment: "", }); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); // In a real application, this would submit to a backend toast.success("Thank you for signing! Your voice matters."); setFormData({ name: "", email: "", comment: "" }); }; return (
setFormData({ ...formData, name: e.target.value })} required className="bg-background border-border" />
setFormData({ ...formData, email: e.target.value })} required className="bg-background border-border" />