import { PlainTextElement } from '@slack/types'; import { JSXSlack } from '../../jsx'; import { OptionComposition } from './Option'; export interface OptgroupComposition { label: PlainTextElement; options: OptionComposition[]; } export interface OptgroupProps { children: JSXSlack.ChildNodes; /** A plain-text string for the label of the option group. */ label: string; } /** * Generate the composition object, for the group of option items in the static * select element. * * It must contain `