<template>
  <n-config-provider :theme="useSettingStore.theme === 'dark' ? darkTheme : lightTheme" abstract>
    <n-loading-bar-provider>
      <n-message-provider>
        <Index />
      </n-message-provider>
    </n-loading-bar-provider>
  </n-config-provider>
</template>

<script lang="ts" setup>
import Index from '@/layout/index.vue';
import { darkTheme, lightTheme } from 'naive-ui';

import { UseSettingStore } from '@/plugin';

const useSettingStore = UseSettingStore();
</script>
