import { MouseEvent as ReactMouseEvent } from 'react' import { TypedOption } from '../sortFilter' export type SegmentedControlsTab = TypedOption & { /** * Whether or not to disable selection of this tab. Defaults to false. */ disabled?: boolean } export type SegmentedControlsProps = { tabs: SegmentedControlsTab[] selected: T | undefined onSelect: ( value: T, event: ReactMouseEvent ) => void loading?: T className?: string disabled?: boolean noWrap?: boolean // If present, a More dropdown will be added to the end of the tabs. moreTabs?: SegmentedControlsTab[] }