portainer/app/react/sidebar/SidebarItem/index.ts

15 lines
387 B
TypeScript

import { SidebarItem as MainComponent } from './SidebarItem';
import { Menu } from './Menu';
import { Wrapper } from './Wrapper';
interface SubComponents {
Menu: typeof Menu;
Wrapper: typeof Wrapper;
}
export const SidebarItem: typeof MainComponent & SubComponents =
MainComponent as typeof MainComponent & SubComponents;
SidebarItem.Menu = Menu;
SidebarItem.Wrapper = Wrapper;