<script setup>
const props = defineProps({
  row: {
    type: Object,
    required: true,
    default: {}
  },
  inShow: {
    type: Boolean,
    default: false
  }
})
</script>

<template>
  <div v-if="props.row.vehicle">
    <nuxt-link v-if="props.inShow" :to="`/standardEntity/vehicles/show/${props.row.vehicle.id}`">
      {{ props.row.vehicle ? props.row.vehicle.licensePlate : '' }}
    </nuxt-link>
    <span v-else>{{ props.row.vehicle ? props.row.vehicle.licensePlate : '' }}</span>
  </div>
</template>
