mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
29 lines
1010 B
Vue
29 lines
1010 B
Vue
<script setup lang="ts">
|
|
import type { PronounGroup, Pronoun } from '~/src/classes.ts';
|
|
|
|
defineProps<{
|
|
pronounGroup?: PronounGroup;
|
|
pronouns: Record<string, Pronoun> | Pronoun[] | string[];
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<section>
|
|
<ul class="list-group mt-4">
|
|
<li class="list-group-item">
|
|
<p v-if="pronounGroup?.name" class="h5">
|
|
<Spelling :text="pronounGroup.name" />
|
|
</p>
|
|
<p v-if="pronounGroup?.description" class="small my-1">
|
|
<Icon v="info-circle" />
|
|
<LinkedText :text="pronounGroup.description" />
|
|
</p>
|
|
<SimplePronounList :pronouns="Array.isArray(pronouns) ? pronouns : Object.values(pronouns)" />
|
|
</li>
|
|
<nuxt-link :to="{ name: 'pronouns' }" class="list-group-item list-group-item-action text-center">
|
|
<Icon v="ellipsis-h-alt" />
|
|
</nuxt-link>
|
|
</ul>
|
|
</section>
|
|
</template>
|