mirror of https://github.com/morpheus65535/bazarr
30 lines
534 B
TypeScript
30 lines
534 B
TypeScript
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
|
|
type SidebarDefinition = LinkItemType | CollapseItemType;
|
|
|
|
type BaseSidebar = {
|
|
icon: IconDefinition;
|
|
name: string;
|
|
hiddenKey?: string;
|
|
};
|
|
|
|
type LinkItemType = BaseSidebar & {
|
|
link: string;
|
|
};
|
|
|
|
type CollapseItemType = BaseSidebar & {
|
|
children: {
|
|
name: string;
|
|
link: string;
|
|
hiddenKey?: string;
|
|
}[];
|
|
};
|
|
|
|
type BadgeProvider = {
|
|
[parent: string]: ChildBadgeProvider | number;
|
|
};
|
|
|
|
type ChildBadgeProvider = {
|
|
[child: string]: number;
|
|
};
|