UNPKG

vuepress-theme-hope

Version:

A light vuepress theme with tons of features

17 lines 785 B
import { defineComponent, h } from "vue"; import AutoLink from "@theme-hope/components/AutoLink"; import NavScreenMenu from "@theme-hope/modules/navbar/components/NavScreenMenu"; import { useNavbarItems } from "@theme-hope/modules/navbar/composables/index"; import "../styles/nav-screen-links.scss"; export default defineComponent({ name: "NavScreenLinks", setup() { const navbarConfig = useNavbarItems(); return () => navbarConfig.value.length ? h("nav", { class: "nav-screen-links" }, navbarConfig.value.map((config) => h("div", { class: "navbar-links-item" }, "children" in config ? h(NavScreenMenu, { config }) : h(AutoLink, { config })))) : null; }, }); //# sourceMappingURL=NavScreenLinks.js.map