2022-05-02 12:52:33 +02:00
|
|
|
import { VoidFunctionComponent } from 'react';
|
2022-08-26 15:16:29 +02:00
|
|
|
import { IFlags, IUiConfig } from 'interfaces/uiConfig';
|
2021-04-12 15:04:03 +02:00
|
|
|
|
2022-04-06 12:22:24 +02:00
|
|
|
export interface IRoute {
|
2021-04-12 15:04:03 +02:00
|
|
|
path: string;
|
2022-04-06 12:22:24 +02:00
|
|
|
title: string;
|
2022-05-05 13:42:18 +02:00
|
|
|
type: 'protected' | 'unprotected';
|
2022-04-06 12:22:24 +02:00
|
|
|
layout?: string;
|
2021-04-12 15:04:03 +02:00
|
|
|
parent?: string;
|
2022-08-26 15:16:29 +02:00
|
|
|
flag?: keyof IFlags;
|
2022-08-23 14:04:09 +02:00
|
|
|
configFlag?: keyof IUiConfig;
|
2022-04-06 12:22:24 +02:00
|
|
|
hidden?: boolean;
|
2022-06-10 16:09:50 +02:00
|
|
|
enterprise?: boolean;
|
2022-05-02 12:52:33 +02:00
|
|
|
component: VoidFunctionComponent;
|
2022-04-06 12:22:24 +02:00
|
|
|
menu: IRouteMenu;
|
2022-10-20 14:00:48 +02:00
|
|
|
isStandalone?: boolean;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
2023-01-12 11:34:45 +01:00
|
|
|
export interface INavigationMenuItem {
|
|
|
|
path: string;
|
|
|
|
title: string;
|
|
|
|
menu: IRouteMenu;
|
|
|
|
flag?: keyof IFlags;
|
|
|
|
configFlag?: keyof IUiConfig;
|
2023-08-03 09:01:49 +02:00
|
|
|
group?: string;
|
2023-01-12 11:34:45 +01:00
|
|
|
}
|
|
|
|
|
2022-04-06 12:22:24 +02:00
|
|
|
interface IRouteMenu {
|
|
|
|
mobile?: boolean;
|
|
|
|
advanced?: boolean;
|
|
|
|
adminSettings?: boolean;
|
2023-03-28 15:12:24 +02:00
|
|
|
mode?: Array<'pro' | 'enterprise'>;
|
2023-08-04 11:57:36 +02:00
|
|
|
showEnterpriseBadge?: boolean;
|
2022-04-06 12:22:24 +02:00
|
|
|
}
|