import { useState } from 'react'; import { Plus } from 'lucide-react'; interface AddOptionProps { onAdd: (text: string) => void; } export function AddOption({ onAdd }: AddOptionProps) { const [text, setText] = useState(''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); if (text.trim()) { onAdd(text); setText(''); } }; return (
); }