1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/frontend/src/interfaces/route.ts

20 lines
396 B
TypeScript
Raw Normal View History

import { VoidFunctionComponent } from 'react';
export interface IRoute {
path: string;
title: string;
type: 'protected' | 'unprotected';
layout?: string;
parent?: string;
flag?: string;
hidden?: boolean;
component: VoidFunctionComponent;
menu: IRouteMenu;
}
interface IRouteMenu {
mobile?: boolean;
advanced?: boolean;
adminSettings?: boolean;
}