diff --git a/src/lib/components/CommentNode.svelte b/src/lib/components/CommentNode.svelte new file mode 100644 index 0000000..92bda2a --- /dev/null +++ b/src/lib/components/CommentNode.svelte @@ -0,0 +1,262 @@ + + +
+ {comment.authorName} · {timeAgo(comment.createdAt)} + {#if edited} + · Edited + {/if} +
+ + {#if editing} + ++ {comment.content} +
+ {/if} + +No {targetType === "note" ? "comments" : "answers"} yet.
+ {/each} +{comment.authorName} · {timeAgo(comment.createdAt)}
-- {comment.content} -
- {#if get(currentUser)?._id === comment.authorId} - - {/if} -No comments yet.
- {/each} +{answer.authorName} · {timeAgo(answer.createdAt)}
-- {answer.content} -
- {#if get(currentUser)?._id === answer.authorId} - - {/if} -No answers yet.
- {/each} +