2022-04-06 12:22:24 +02:00
|
|
|
import { FunctionComponent } 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;
|
2021-04-12 15:04:03 +02:00
|
|
|
type: string;
|
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;
|
|
|
|
component: FunctionComponent;
|
|
|
|
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;
|
|
|
|
}
|