<script setup lang="ts">
import { $t } from '@/locales';

defineOptions({
  name: 'GlobalLogo'
});

withDefaults(defineProps<Props>(), {
  showTitle: true
});

interface Props {
  /** Whether to show the title */
  showTitle?: boolean;
}
</script>

<template>
  <RouterLink to="/" class="flex-center w-full nowrap-hidden">
    <SystemLogo class="text-32px text-primary" />
    <h2 v-show="showTitle" class="pl-8px text-16px font-bold text-primary transition duration-300 ease-in-out">
      {{ $t('system.title') }}
    </h2>
  </RouterLink>
</template>

<style scoped></style>
