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