import { ReactNode } from 'react'; export interface SegmentedOption { value: T; label: string; icon?: ReactNode; } /** * Segmented control — the premium-editor answer to a short enum: every choice is * visible on a rail instead of hidden behind a dropdown. One button per option; * the active one lifts onto a white chip. Use it for 2–3 options with clear * icons (trigger, HTTP method, popup direction); longer lists stay