2025-01-28 17:20:34 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {TrustedEvent} from "@welshman/util"
|
|
|
|
|
import {displayProfileByPubkey} from "@welshman/app"
|
|
|
|
|
import {slide} from "@lib/transition"
|
2025-09-10 22:26:39 +00:00
|
|
|
import CloseCircle from "@assets/icons/close-circle.svg?dataurl"
|
2025-01-28 17:20:34 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
|
|
|
|
import Button from "@lib/components/Button.svelte"
|
2025-10-06 18:23:19 +00:00
|
|
|
import NoteContentMinimal from "@app/components/NoteContentMinimal.svelte"
|
2025-01-28 17:20:34 +00:00
|
|
|
|
2025-02-06 19:33:01 +00:00
|
|
|
const {
|
|
|
|
|
verb,
|
|
|
|
|
event,
|
|
|
|
|
clear,
|
|
|
|
|
}: {
|
|
|
|
|
verb: string
|
2025-02-04 00:37:14 +00:00
|
|
|
event: TrustedEvent
|
|
|
|
|
clear: () => void
|
2025-02-06 19:33:01 +00:00
|
|
|
} = $props()
|
2025-01-28 17:20:34 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
2026-06-24 20:56:53 +00:00
|
|
|
class="relative border-l-2 border-solid bg-surface-more px-2 py-1 pr-8"
|
|
|
|
|
style="border-color: var(--primary)"
|
2025-01-28 17:20:34 +00:00
|
|
|
transition:slide>
|
2025-10-06 18:23:19 +00:00
|
|
|
<p class="text-xs text-primary">{verb} @{displayProfileByPubkey(event.pubkey)}</p>
|
2025-01-28 17:20:34 +00:00
|
|
|
{#key event.id}
|
2025-10-06 18:23:19 +00:00
|
|
|
<NoteContentMinimal trimParent {event} />
|
2025-01-28 17:20:34 +00:00
|
|
|
{/key}
|
2025-02-04 01:21:46 +00:00
|
|
|
<Button class="absolute right-2 top-2 cursor-pointer" onclick={clear}>
|
2025-09-10 22:26:39 +00:00
|
|
|
<Icon icon={CloseCircle} />
|
2025-01-28 17:20:34 +00:00
|
|
|
</Button>
|
|
|
|
|
</div>
|