<script setup lang="ts">
definePageMeta({
  middleware: "auth"
})
const dataStore = useDataStore()
const router = useRouter()

const columns = [
  {
    key:"fullName",
    label: "Name",
  },/*
  {
    key: "username",
    label: "Benutzername"
  },*/
  {
    key: "role",
    label: "Rolle"
  }
]


</script>

<template>

  <UTable
    :rows="dataStore.profiles"
    :columns="columns"
    @select="(item) => router.push(`/users/show/${item.id}`)"
  >

  </UTable>

  <DevOnly>
    {{dataStore.profiles}}
  </DevOnly>
</template>

<style scoped>

</style>