import { useState } from 'react' import { Check } from 'lucide-react' import { cn } from '@/lib/utils' import type { StepOptionSchema } from '@/types/ai-session' interface FlowPilotOptionsProps { options: StepOptionSchema[] onSelect: (value: string) => void disabled?: boolean } export function FlowPilotOptions({ options, onSelect, disabled }: FlowPilotOptionsProps) { const [selected, setSelected] = useState(null) const handleSelect = (value: string) => { if (disabled) return setSelected(value) onSelect(value) } return (
{options.map((option) => { const isSelected = selected === option.value return ( ) })}
) }