import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu'; import { Icon } from '@/components/icon/Icon'; import { cn } from '@/lib/utils'; import { useI18n } from '@/lib/i18n'; export type ThinkingPillProps = { value: string; options: string[]; disabled?: boolean; onChange: (value: string) => void; }; export const ThinkingPill = ({ value, options, disabled, onChange }: ThinkingPillProps) => { const { t } = useI18n(); const label = value || t('rightSidebar.contextNotesTodo.sendDialog.variant.default'); const trigger = (
{label}
); if (disabled) return trigger; return ( {trigger} onChange('')}> {t('rightSidebar.contextNotesTodo.sendDialog.variant.default')} {options.map((option) => ( onChange(option)} > {option} ))} ); };