@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
15 lines • 468 B
TypeScript
import { DropdownOption } from '../interfaces';
interface ParentDropdownOption {
type: 'parent';
index: number;
option: DropdownOption;
children: ChildDropdownOption[];
}
interface ChildDropdownOption {
type: 'child';
index: number;
option: DropdownOption;
}
export type NestedDropdownOption = ParentDropdownOption | ChildDropdownOption;
export declare function unflattenOptions(options: ReadonlyArray<DropdownOption>): NestedDropdownOption[];
export {};