export type OptionGroupType = { label: string options: OptionType[] disabled?: boolean } export type OptionType = { label: string value: T disabled?: boolean icon?: string } export type Options = (OptionType | OptionGroupType)[]