2024-10-15 21:00:15 +00:00
|
|
|
<script lang="ts">
|
2024-10-15 22:52:30 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
|
|
|
|
import Button from "@lib/components/Button.svelte"
|
2024-10-15 21:00:15 +00:00
|
|
|
import ChatMessageEmojiButton from "@app/components/ChatMessageEmojiButton.svelte"
|
2024-10-15 22:52:30 +00:00
|
|
|
import EventInfo from "@app/components/EventInfo.svelte"
|
|
|
|
|
import {pushModal} from "@app/modal"
|
2024-10-15 21:00:15 +00:00
|
|
|
|
2025-02-04 01:21:46 +00:00
|
|
|
const {event, pubkeys, popover, replyTo} = $props()
|
2024-11-19 21:24:18 +00:00
|
|
|
|
|
|
|
|
const reply = () => replyTo(event)
|
2024-10-15 21:00:15 +00:00
|
|
|
|
|
|
|
|
const showInfo = () => {
|
|
|
|
|
popover.hide()
|
|
|
|
|
pushModal(EventInfo, {event})
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="join border border-solid border-neutral text-xs">
|
|
|
|
|
<ChatMessageEmojiButton {event} {pubkeys} />
|
2024-11-19 21:24:18 +00:00
|
|
|
{#if replyTo}
|
2025-02-04 01:21:46 +00:00
|
|
|
<Button class="btn join-item btn-xs" onclick={reply}>
|
2024-11-19 21:24:18 +00:00
|
|
|
<Icon size={4} icon="reply" />
|
|
|
|
|
</Button>
|
|
|
|
|
{/if}
|
2025-02-04 01:21:46 +00:00
|
|
|
<Button class="btn join-item btn-xs" onclick={showInfo}>
|
2024-10-15 21:00:15 +00:00
|
|
|
<Icon size={4} icon="code-2" />
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|