hirsun-vuepress-theme-hope-plus
Version:
A light vuepress theme with tons of features and typewriter effect
17 lines • 797 B
JavaScript
import { defineComponent, h } from "vue";
import AutoLink from "@theme-hope/components/AutoLink";
import NavScreenDropdown from "@theme-hope/modules/navbar/components/NavScreenDropdown";
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(NavScreenDropdown, { config })
: h(AutoLink, { config }))))
: null;
},
});
//# sourceMappingURL=NavScreenLinks.js.map