UNPKG

hirsun-vuepress-theme-hope-plus

Version:
20 lines 959 B
import { ClientOnly } from "@vuepress/client"; import { computed, defineComponent, h } from "vue"; import { usePure, useThemeData } from "@theme-hope/composables/index"; import AppearanceMode from "@theme-hope/modules/outlook/components/AppearanceMode"; import ThemeColor, { enableThemeColor, } from "@theme-hope/modules/outlook/components/ThemeColor"; import ToggleFullScreenButton from "@theme-hope/modules/outlook/components/ToggleFullScreenButton"; export default defineComponent({ name: "OutlookSettings", setup() { const themeData = useThemeData(); const pure = usePure(); const enableFullScreen = computed(() => !pure.value && themeData.value.fullscreen); return () => h(ClientOnly, () => [ enableThemeColor ? h(ThemeColor) : null, h(AppearanceMode), enableFullScreen.value ? h(ToggleFullScreenButton) : null, ]); }, }); //# sourceMappingURL=OutlookSettings.js.map