frontend/components/notes/reblog-header.vue

22 lines
720 B
Vue
Raw Normal View History

<template>
2024-11-30 16:39:02 +01:00
<NuxtLink :href="url" class="rounded border hover:bg-muted duration-100 text-sm flex flex-row items-center gap-2 px-2 py-1 mb-4">
<Repeat class="size-4 text-primary" />
<Avatar class="size-6 rounded border">
<AvatarImage :src="avatar" alt="" />
<AvatarFallback class="rounded-lg"> AA </AvatarFallback>
</Avatar>
<span class="font-semibold">{{ displayName }}</span>
reblogged
2024-11-30 16:39:02 +01:00
</NuxtLink>
</template>
<script lang="ts" setup>
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Repeat } from "lucide-vue-next";
defineProps<{
avatar: string;
displayName: string;
2024-11-30 16:39:02 +01:00
url: string;
}>();
</script>