mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
a01aa7e355
## About the changes - add divider - reorder items - add flag for project https://linear.app/unleash/project/[high][s][none]-improved-menu-aefaca264034 Closes https://linear.app/unleash/issue/1-1101/improved-menu-enterprise
34 lines
767 B
TypeScript
34 lines
767 B
TypeScript
import { VoidFunctionComponent } from 'react';
|
|
import { IFlags, IUiConfig } from 'interfaces/uiConfig';
|
|
|
|
export interface IRoute {
|
|
path: string;
|
|
title: string;
|
|
type: 'protected' | 'unprotected';
|
|
layout?: string;
|
|
parent?: string;
|
|
flag?: keyof IFlags;
|
|
configFlag?: keyof IUiConfig;
|
|
hidden?: boolean;
|
|
enterprise?: boolean;
|
|
component: VoidFunctionComponent;
|
|
menu: IRouteMenu;
|
|
isStandalone?: boolean;
|
|
}
|
|
|
|
export interface INavigationMenuItem {
|
|
path: string;
|
|
title: string;
|
|
menu: IRouteMenu;
|
|
flag?: keyof IFlags;
|
|
configFlag?: keyof IUiConfig;
|
|
group?: string;
|
|
}
|
|
|
|
interface IRouteMenu {
|
|
mobile?: boolean;
|
|
advanced?: boolean;
|
|
adminSettings?: boolean;
|
|
mode?: Array<'pro' | 'enterprise'>;
|
|
}
|