UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

16 lines (15 loc) 591 B
/// <reference types="react" /> import { SlotRegistry } from '@teambit/harmony'; export declare type MenuItem = { label: string; onClick: () => void; }; export declare type TopBarSlotRegistry = SlotRegistry<MenuItem>; export declare class WorkspaceUI { private topBarSlot; constructor(topBarSlot: TopBarSlotRegistry); registerMenuItem(menuItem: MenuItem): this; getMain(): JSX.Element; static slots: ((registerFn: () => string) => SlotRegistry<MenuItem>)[]; static provider(deps: any, config: any, [topBarSlot]: [TopBarSlotRegistry]): Promise<WorkspaceUI>; }