<template>
  <div class="home">
    <component :is="comp"></component>
  </div>
</template>

<script setup name="Index" lang="ts">
import useUserStore from '@/store/modules/user';
import DashbordAdmin from './dashboardAdmin.vue';
import Dashbord from './dashboard.vue';
console.log(useUserStore().roles);
const comp = useUserStore().roles.includes('superadmin') ? DashbordAdmin : Dashbord;
</script>

<style scoped lang="scss">
.home {
  height: 100%;
  padding: 10px 20px;
  background: #fcfcfc;
}
</style>
