'use client'; import { useState } from 'react'; interface ChipsBlockProps { options: string[]; onSelect: (value: string) => void; disabled?: boolean; } export function ChipsBlock({ options, onSelect, disabled }: ChipsBlockProps) { const [selected, setSelected] = useState(null); return (
{options.map((option) => { const isSelected = selected === option; const isDimmed = selected !== null && !isSelected; return ( ); })}
); }