@difizen/mana-app
Version:
21 lines • 700 B
JavaScript
import { ManaModule } from '@difizen/mana-core';
import { Menu, MenuFactory, MenuPathSymbol } from "./menu";
import 'rc-tooltip/assets/bootstrap.css';
import { MenuColorRegistry } from "./menu-color-registry";
export var MenuModule = ManaModule.create().register(Menu, MenuColorRegistry).register({
token: MenuFactory,
useDynamic: function useDynamic(ctx) {
return function (menuPath) {
var child = ctx.container.createChild();
child.register({
token: MenuPathSymbol,
useValue: menuPath
});
return child.get(Menu);
};
}
});
export * from "./menu";
export * from "./menu-render";
export * from "./menu-bar-render";
export * from "./menu-protocol";