22 lines
438 B
Vue
22 lines
438 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { brand } from '@mento/shared';
|
|
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
lang?: 'fa' | 'en' | 'full';
|
|
}>(),
|
|
{ lang: 'fa' },
|
|
);
|
|
|
|
const text = computed(() => {
|
|
if (props.lang === 'en') return brand.name;
|
|
if (props.lang === 'full') return brand.fullName;
|
|
return brand.nameFa;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<span class="brand-name">{{ text }}</span>
|
|
</template>
|