Files
dancefinder-app/layouts/components/themed.vue
T

17 lines
301 B
Vue
Raw Normal View History

<template>
<div>
<slot />
</div>
</template>
2024-02-02 18:55:45 +01:00
<script setup lang='ts'>
import { getCurrentInstance } from 'vue'
2023-08-01 20:21:31 +02:00
import { useState } from '~/store'
2024-02-02 18:55:45 +01:00
const instance = getCurrentInstance()
const state = useState()
if (instance) {
instance.proxy.$vuetify.theme.dark = state.darkMode
}
</script>