<template>
  <router-view />
</template>

<script setup>
import useScreenStore from "@/store/modules/screen";

const screenStore = useScreenStore();

import { onMounted } from "vue";

onMounted(() => {
  const theme = screenStore.theme;
  screenStore.toggleTheme(theme);
  window.document.documentElement.setAttribute("data-theme", theme);
});
</script>

<style scoped></style>