<script setup>
import {useSupabaseSelectSingle} from "~/composables/useSupabase.js";

const route = useRoute()

const itemInfo = ref({})

const tabItems = [{
  label: 'Informationen',
}, {
  label: 'Dokumente',
}, {
  label: 'Überprüfungen',
}]

const setupPage = async () => {
  itemInfo.value = await useSupabaseSelectSingle("vehicles",route.params.id,"*, checks(*), documents(*)")
  console.log(itemInfo.value)
}

setupPage()
</script>

<template>
  <EntityShow
    type="vehicles"
    :item="itemInfo"
  />
</template>

<style scoped>

</style>