2022-05-02 12:52:33 +02:00
|
|
|
import { VoidFunctionComponent } from 'react';
|
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-04-06 12:22:24 +02:00
|
|
|
flag?: string;
|
|
|
|
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;
|
2021-04-12 15:04:03 +02:00
|
|
|
}
|
|
|
|
|
2022-04-06 12:22:24 +02:00
|
|
|
interface IRouteMenu {
|
|
|
|
mobile?: boolean;
|
|
|
|
advanced?: boolean;
|
|
|
|
adminSettings?: boolean;
|
2022-05-25 23:26:05 +02:00
|
|
|
isBilling?: boolean;
|
2022-04-06 12:22:24 +02:00
|
|
|
}
|