<script setup lang="ts">
import DefaultTheme from 'vitepress/theme'
import '/public/assets/css/custom.css'
import { useData, inBrowser } from 'vitepress'
import { watchEffect } from 'vue'

const { lang } = useData()
watchEffect(() => {
    if (inBrowser) {
        document.cookie = `nf_lang=${lang.value}; expires=Mon, 1 Jan 2030 00:00:00 UTC; path=/`
    }
})
</script>

<template>
    <DefaultTheme.Layout />
</template>