2025-03-28 01:16:24 +01:00
|
|
|
<template>
|
|
|
|
|
<Card
|
2025-04-10 18:44:53 +02:00
|
|
|
class="flex-row gap-2 p-2 truncate items-center"
|
2025-05-01 01:45:46 +02:00
|
|
|
:class="naked ? 'p-0 bg-transparent ring-0 border-none shadow-none' : ''"
|
2025-03-28 01:16:24 +01:00
|
|
|
>
|
2025-04-10 18:44:53 +02:00
|
|
|
<Avatar :src="account.avatar" :name="account.display_name" class="size-10" />
|
|
|
|
|
<CardContent class="leading-tight">
|
2025-07-10 05:13:42 +02:00
|
|
|
<Text class="font-semibold" v-render-emojis="account.emojis">
|
|
|
|
|
{{ account.display_name }}
|
|
|
|
|
</Text>
|
|
|
|
|
<Address :username="account.username" :domain="domain" />
|
2025-03-28 01:16:24 +01:00
|
|
|
</CardContent>
|
|
|
|
|
</Card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2025-05-26 11:19:15 +02:00
|
|
|
import type { Account } from "@versia/client/schemas";
|
|
|
|
|
import type { z } from "zod";
|
2025-03-28 01:16:24 +01:00
|
|
|
import { Card, CardContent } from "~/components/ui/card";
|
2025-07-10 05:13:42 +02:00
|
|
|
import Text from "../typography/text.vue";
|
|
|
|
|
import Address from "./address.vue";
|
2025-03-28 01:16:24 +01:00
|
|
|
import Avatar from "./avatar.vue";
|
|
|
|
|
|
|
|
|
|
const { account, domain, naked } = defineProps<{
|
2025-05-26 11:19:15 +02:00
|
|
|
account: z.infer<typeof Account>;
|
2025-03-28 01:16:24 +01:00
|
|
|
domain: string;
|
|
|
|
|
naked?: boolean;
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style></style>
|