mirror of https://github.com/morpheus65535/bazarr
27 lines
612 B
TypeScript
27 lines
612 B
TypeScript
import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
|
|
import { FunctionComponent } from "react";
|
|
|
|
export declare namespace Navigation {
|
|
type RouteWithoutChild = {
|
|
icon?: IconDefinition;
|
|
name: string;
|
|
path: string;
|
|
component: FunctionComponent;
|
|
badge?: number;
|
|
enabled?: boolean;
|
|
routeOnly?: boolean;
|
|
};
|
|
|
|
type RouteWithChild = {
|
|
icon: IconDefinition;
|
|
name: string;
|
|
path: string;
|
|
component?: FunctionComponent;
|
|
badge?: number;
|
|
enabled?: boolean;
|
|
routes: RouteWithoutChild[];
|
|
};
|
|
|
|
type RouteItem = RouteWithChild | RouteWithoutChild;
|
|
}
|