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

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