conversation-options-panel.svelte (1067B)
1 <script lang="ts"> 2 import ConversationOptions from '../../../src/lib/components/ConversationOptions.svelte'; 3 import MessageItem from '../../../src/lib/components/MessageItem.svelte'; 4 import type { InboxView } from '../../../src/lib/messaging/inbox-view.ts'; 5 import type { PublicRuntime } from '../../../src/lib/runtime/public-runtime.ts'; 6 import type { ThreadMessage } from '../../../src/lib/messaging/conversation-thread.ts'; 7 let { 8 controller, 9 conversationId, 10 runtime, 11 message, 12 hook 13 }: { 14 controller: InboxView; 15 conversationId: string; 16 runtime: PublicRuntime; 17 message: ThreadMessage; 18 hook: (action: string, peer: string) => void; 19 } = $props(); 20 </script> 21 22 <section data-options-fixture> 23 <ConversationOptions 24 {controller} 25 {conversationId} 26 onblock={(peer: string) => hook('block', peer)} 27 onreport={(peer: string) => hook('report', peer)} 28 /> 29 <MessageItem 30 {controller} 31 {conversationId} 32 {message} 33 {runtime} 34 onreply={(parent: string) => hook('reply', parent)} 35 /> 36 </section>