Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041<script lang="ts"> import { type MarkupContext } from "#lib/markup/index.ts"; import type { KnotOrigin } from "#lib/api/syntax.ts"; import CommentCard from "#lib/components/comment/CommentCard.svelte"; import type { CommentThread, ThreadInput } from "#lib/components/comment/comments.ts"; import { revealComment } from "#lib/components/comment/reveal.ts";
interface Props { threads: CommentThread[]; subjectUri: string; subjectCid?: string; markup: MarkupContext; knot?: KnotOrigin; onsubmitted?: (submitted: ThreadInput) => void; onedited?: (edited: ThreadInput) => void; ondeleted?: (uri: string) => void; }
let { threads, subjectUri, subjectCid, markup, knot, onsubmitted, onedited, ondeleted }: Props = $props();</script>
{#if threads.length} <div class="flex flex-col gap-md"> {#each threads as thread (thread.self.uri)} <div in:revealComment|global={thread.self}> <CommentCard {thread} {subjectUri} {subjectCid} {markup} {knot} {onsubmitted} {onedited} {ondeleted} /> </div> {/each} </div>{/if}