import html from "html";
import Icon from "../components/icon/index.js";
import { useAppStore } from "../store/index.js";
import MenuItem from "./menu-item.js";
import router from "../router/index.js";
export default {
components: { Icon, MenuItem },
template: html`
`,
setup() {
const appStore = useAppStore();
const menus = router.getRoutes().find((o) => o.name === "layout").children;
return {
appStore,
menus,
};
},
};