import { MdDelete, MdAdd } from "react-icons/md"; interface AlternativeSolutionProps { solutions: string[]; onAdd: () => void; onRemove: (index: number) => void; onEdit: (index: number, value: string) => void; } const AlternativeSolutions: React.FC = ({ solutions, onAdd, onRemove, onEdit, }) => { return (
{solutions.map((solution, index) => (
onEdit(index, e.target.value)} className="flex-1 p-2 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:outline-none" placeholder={`Solution ${index + 1}`} />
))}
); }; export default AlternativeSolutions;