"use client"; import { Avatar } from "components/Avatar"; import { useRecordFromDid } from "src/utils/useRecordFromDid"; // The full shape of a comment message — an avatar + author name header row // and the content below it — shared by rendered messages and the composer, // so a comment keeps the same layout whether it's being read, drafted, or // edited in place. export function EditorCommentMessageLayout(props: { did?: string | null; // date / action buttons at the end of the header row headerActions?: React.ReactNode; className?: string; children: React.ReactNode; }) { let { data: profile } = useRecordFromDid(props.did ?? undefined); return (