18 lines
536 B
Vue
18 lines
536 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import type { Client } from '~/types'
|
||
|
|
|
||
|
|
const props = defineProps<{ client: Client }>()
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<NuxtLink
|
||
|
|
:to="`/clients/${client.id}`"
|
||
|
|
class="block border border-gray-200 bg-white px-4 py-3 hover:bg-blue-50 cursor-pointer"
|
||
|
|
>
|
||
|
|
<div class="flex items-baseline gap-4">
|
||
|
|
<span class="text-sm font-mono text-gray-500 w-20 shrink-0">{{ client.client_number }}</span>
|
||
|
|
<span class="text-sm font-medium text-gray-900">{{ client.name }}</span>
|
||
|
|
</div>
|
||
|
|
</NuxtLink>
|
||
|
|
</template>
|