UNPKG

vuepress-theme-hope

Version:

A light vuepress theme with tons of features

19 lines 876 B
import { useFullscreen } from "@vueuse/core"; import { defineComponent, h } from "vue"; import ToggleFullScreenButton from "@theme-hope/components/appearance/ToggleFullScreenButton"; import { useAppearanceLocale } from "@theme-hope/composables/appearance/useAppearanceLocale"; import "../../styles/appearance/toggle-full-screen.scss"; export default defineComponent({ name: "ToggleFullScreenButton", setup() { const appearanceLocale = useAppearanceLocale(); const { isSupported } = useFullscreen(); return () => isSupported.value ? h("div", { class: "full-screen-wrapper" }, [ h("label", { class: "full-screen-title", for: "full-screen-switch" }, appearanceLocale.value.fullscreen), h(ToggleFullScreenButton), ]) : null; }, }); //# sourceMappingURL=ToggleFullScreen.js.map