<script setup lang="ts">
import Error from '~/components/pub/my-ui/error/error.vue'
import Content from '~/components/content/item/list.vue'

const route = useRoute()

definePageMeta({
  middleware: ['rbac'],
  roles: ['emp|reg', 'emp|nur', 'emp|doc', 'emp|miw', 'emp|thr', 'emp|nut', 'emp|pha', 'emp|lab'],
  title: 'Daftar Item',
  contentFrame: 'cf-container-lg',
})

useHead({
  title: () => route.meta.title as string,
})

const canRead = true
</script>

<template>
  <template v-if="canRead">
    <Content />
  </template>
  <Error
    v-else
    :status-code="403"
  />
</template>
