Files
artsite/app/components/uses/Item.vue
Arthur DANJOU f7a6bfd554 Merge branch 'refs/heads/master' into feature_es
# Conflicts:
#	app/components/AppHeader.vue
#	app/components/content/Quote.vue
#	app/components/home/Map.vue
#	app/pages/index.vue
#	content/home/en.md
#	content/home/fr.md
#	nuxt.config.ts
#	package.json
#	pnpm-lock.yaml
#	tailwind.config.ts
2024-11-26 20:10:22 +01:00

25 lines
527 B
Vue

<script lang="ts" setup>
import type { UsesItem } from '#components'
import type { PropType } from 'vue'
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 : locale === 'es' ? item.description.es : item.description.fr }}
</p>
</li>
</template>