import {DropdownItem} from './DropdownItem'; /** * This interface describes a group of dropdown menu items. * * Note: the current (undocumented) dropdown API does not have the concept of * item groups, however, since AtlasKit supports it, introducing now should prevent * the need for products having to update their provider API later on. */ export class DropdownGroup { /** * The heading of the dropdown menu group. */ heading: string; /** * The items within the group. */ items: [DropdownItem]; constructor( heading: string, items: [DropdownItem]) { this.heading = heading; this.items = items; } }