import type { CommentItem } from "@/lib/comment-model"; import { relativeTime } from "@/lib/feed-model"; export interface CommentsPanelProps { comments: CommentItem[]; loading?: boolean; /** Error text naming the action that failed. The list stays shown. */ error?: string | null; value: string; busy?: boolean; onChange?: (v: string) => void; onSubmit?: () => void; onRetry?: () => void; now?: number; } export function CommentsPanel(p: CommentsPanelProps) { const empty = !p.value.trim(); return (
No comments yet.
) : null}This comment was removed.
:{c.content}
}{p.error}{" "} {p.onRetry ? : null}
) : null}