mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
53354224fc
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
37 lines
861 B
TypeScript
37 lines
861 B
TypeScript
import type { VoidFunctionComponent } from 'react';
|
|
import type { UiFlags, IUiConfig } from 'interfaces/uiConfig';
|
|
|
|
export interface IRoute {
|
|
path: string;
|
|
title: string;
|
|
type: 'protected' | 'unprotected';
|
|
layout?: string;
|
|
parent?: string;
|
|
flag?: keyof UiFlags;
|
|
notFlag?: keyof UiFlags;
|
|
configFlag?: keyof IUiConfig;
|
|
hidden?: boolean;
|
|
enterprise?: boolean;
|
|
component: VoidFunctionComponent;
|
|
menu: IRouteMenu;
|
|
isStandalone?: boolean;
|
|
}
|
|
|
|
export interface INavigationMenuItem {
|
|
path: string;
|
|
title: string;
|
|
menu: IRouteMenu;
|
|
flag?: keyof UiFlags;
|
|
notFlag?: keyof UiFlags;
|
|
configFlag?: keyof IUiConfig;
|
|
group?: string;
|
|
}
|
|
|
|
interface IRouteMenu {
|
|
mobile?: boolean;
|
|
advanced?: boolean;
|
|
adminSettings?: boolean;
|
|
mode?: Array<'pro' | 'enterprise'>;
|
|
billing?: boolean;
|
|
}
|