frontend/app/components/notes/reactions/index.vue

19 lines
527 B
Vue
Raw Normal View History

<template>
2025-12-09 23:26:59 +01:00
<div class="flex flex-row gap-1 flex-wrap">
2025-12-09 22:32:22 +01:00
<Reaction
v-for="reaction in note.reactions"
2025-12-09 22:32:22 +01:00
:key="reaction.name"
:reaction="reaction"
:emoji="note.emojis.find(e => `:${e.shortcode}:` === reaction.name)"
2025-12-09 22:32:22 +01:00
/>
</div>
</template>
<script lang="ts" setup>
import { key } from "../provider";
import Reaction from "./reaction.vue";
// biome-ignore lint/style/noNonNullAssertion: We want an error if not provided
const { note } = inject(key)!;
</script>