|
|
@@ -1,5 +1,10 @@
|
|
|
import { types } from 'mobx-state-tree';
|
|
|
|
|
|
+const BreadcrumbItem = types.model('BreadcrumbItem', {
|
|
|
+ title: types.string,
|
|
|
+ url: types.string,
|
|
|
+});
|
|
|
+
|
|
|
export const NavItem = types.model('NavItem', {
|
|
|
id: types.identifier(types.string),
|
|
|
text: types.string,
|
|
|
@@ -10,6 +15,7 @@ export const NavItem = types.model('NavItem', {
|
|
|
active: types.optional(types.boolean, false),
|
|
|
breadcrumbs: types.optional(types.array(types.late(() => Breadcrumb)), []),
|
|
|
children: types.optional(types.array(types.late(() => NavItem)), []),
|
|
|
+ breadcrumbs: types.optional(types.array(BreadcrumbItem), []),
|
|
|
});
|
|
|
|
|
|
export const Breadcrumb = types.model('Breadcrumb', {
|