import type { IconName } from '../Icon'; export type StatusBadgeType = { type: 'status'; }; export type CounterBadgeType = { type: 'counter'; value: number; max?: number; }; export interface SegmentedControlItemConfig { /** * The value of the segment option. */ value: string; /** * The label of the segment option. */ label?: string; /** * The subtext of the segment option. */ subText?: string; /** * The prefix of the segment option. */ prefix?: IconName; /** * The suffix of the segment option. */ suffix?: IconName; /** * Test ID for testing purposes. */ testID?: string; /** * Whether the segment option is disabled. */ disabled?: boolean; /** * The badge configuration of the segment option. */ badge?: StatusBadgeType | CounterBadgeType; }