Files
artsite/app/components/uses/Item.vue

25 lines
487 B
Vue

<script lang="ts" setup>
import type { PropType } from 'vue'
import type { UsesItem } from '#components'
defineProps({
item: {
type: Object as PropType<typeof UsesItem>,
required: true,
},
})
const { locale } = useI18n()
</script>
<template>
<li>
<p class="text-base font-semibold text-black dark:text-white">
{{ item.name }}
</p>
<p class="text-sm">
{{ locale === 'en' ? item.description.en : item.description.fr }}
</p>
</li>
</template>