24 lines
408 B
TypeScript
24 lines
408 B
TypeScript
|
export class Item {
|
||
|
name: string;
|
||
|
route: string;
|
||
|
items: Item[];
|
||
|
icon: string;
|
||
|
open: boolean;
|
||
|
|
||
|
constructor(name: string, route: string, items: Item[], icon, open: boolean) {
|
||
|
this.name = name;
|
||
|
this.route = route;
|
||
|
this.items = items;
|
||
|
this.icon = icon;
|
||
|
this.open = open;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class Sidebar {
|
||
|
items: Item[];
|
||
|
|
||
|
constructor(items: Item[]) {
|
||
|
this.items = items;
|
||
|
}
|
||
|
}
|