<template>
  <EntityList
    :items="items"
    type="products"
  />
</template>

<script setup>

definePageMeta({
  middleware: "auth"
})

const items = ref([])
const productcategories = ref([])

const setupPage = async () => {
  items.value = await useSupabaseSelect("products","*, unit(name)")
  productcategories.value = await useSupabaseSelect("productcategories", "*")
}

setupPage()
</script>

<style scoped>

</style>