|
|
@@ -8,5 +8,11 @@ export const NavItem = types.model('NavItem', {
|
|
|
icon: types.optional(types.string, ''),
|
|
|
img: types.optional(types.string, ''),
|
|
|
active: types.optional(types.boolean, false),
|
|
|
+ breadcrumbs: types.optional(types.array(types.late(() => Breadcrumb)), []),
|
|
|
children: types.optional(types.array(types.late(() => NavItem)), []),
|
|
|
});
|
|
|
+
|
|
|
+export const Breadcrumb = types.model('Breadcrumb', {
|
|
|
+ title: types.string,
|
|
|
+ url: types.string,
|
|
|
+});
|