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

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