import { Input } from '@components/ui/input'; import { Button } from '@components/ui/button'; import { X } from 'lucide-react'; export function EditableList({ items, onAdd, onRemove, onUpdate, }: { items: string[]; onAdd: () => void; onRemove: (index: number) => void; onUpdate: (index: number, value: string) => void; }) { return (
{items.map((item, index) => (
onUpdate(index, e.target.value)} />
))}
); }