import Link from "next/link"; import Markdown from "react-markdown"; import { RelativeTime } from "@/components/relative-time"; import type { CommentUser, CommentWithUser } from "@/lib/data/comments"; import { rehypeExternalLinks } from "@/lib/rehype"; import { remarkGfm, remarkSmartypants } from "@/lib/remark"; import { cn } from "@/lib/utils"; import { CommentActions } from "./comment-actions"; import { CommentAvatar } from "./comment-avatar"; const CommentSingle = ({ comment, currentUser, }: { comment: CommentWithUser; currentUser: CommentUser | null; }) => { const divId = `comment-${comment.id.substring(0, 8)}`; return (