interface Option { value: string; label: string; } interface Props { options: Option[]; value: string; onChange: (value: string) => void; } export default function Toggle({ options, value, onChange }: Props) { return (
{options.map((opt) => ( ))}
); }