<template>
  <div>
    <slot />
  </div>
</template>

<script setup lang='ts'>
import { getCurrentInstance } from 'vue'
import { useState } from '~/store'

const instance = getCurrentInstance()
const state = useState()
if (instance) {
  instance.proxy.$vuetify.theme.dark = state.darkMode
}
</script>
