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