2025-05-26 19:21:13 +02:00
|
|
|
<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
|
2026-01-09 23:10:45 +01:00
|
|
|
v-for="reaction in note.reactions"
|
2025-12-09 22:32:22 +01:00
|
|
|
:key="reaction.name"
|
|
|
|
|
:reaction="reaction"
|
2026-01-09 23:10:45 +01:00
|
|
|
:emoji="note.emojis.find(e => `:${e.shortcode}:` === reaction.name)"
|
2025-12-09 22:32:22 +01:00
|
|
|
/>
|
2025-05-26 19:21:13 +02:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2026-01-09 23:10:45 +01:00
|
|
|
import { key } from "../provider";
|
2025-05-26 19:21:13 +02:00
|
|
|
import Reaction from "./reaction.vue";
|
|
|
|
|
|
2026-01-09 23:10:45 +01:00
|
|
|
// biome-ignore lint/style/noNonNullAssertion: We want an error if not provided
|
|
|
|
|
const { note } = inject(key)!;
|
2025-05-26 19:21:13 +02:00
|
|
|
</script>
|