frontend/app/components/notes/reblog-header.vue

29 lines
929 B
Vue
Raw Normal View History

<template>
2025-04-10 14:48:03 +02:00
<NuxtLink :href="urlAsPath">
<Card class="flex-row px-2 py-1 items-center gap-2 hover:bg-muted duration-100 text-sm">
<Repeat class="size-4 text-primary" />
<Avatar class="size-6 border" :src="avatar" :name="displayName" />
<span class="font-semibold" v-render-emojis="emojis">{{ displayName }}</span>
{{ m.large_vivid_horse_catch() }}
</Card>
2024-11-30 16:39:02 +01:00
</NuxtLink>
</template>
<script lang="ts" setup>
import type { CustomEmoji } from "@versia/client/schemas";
import { Repeat } from "lucide-vue-next";
import type { z } from "zod";
2025-07-16 07:48:39 +02:00
import * as m from "~~/paraglide/messages.js";
import Avatar from "../profiles/avatar.vue";
2025-04-10 14:48:03 +02:00
import { Card } from "../ui/card";
2024-12-02 17:25:27 +01:00
const { url } = defineProps<{
avatar: string;
displayName: string;
emojis: z.infer<typeof CustomEmoji>[];
2024-11-30 16:39:02 +01:00
url: string;
}>();
2024-12-02 17:25:27 +01:00
const urlAsPath = new URL(url).pathname;
2025-04-10 14:48:03 +02:00
</script>