"use client";
import { jsx } from "react/jsx-runtime";
import { MarkdownContent } from "@open-mercato/ui/backend/markdown/MarkdownContent";
function MessageDetailBodySection(props) {
  if (props.ContentComponent) {
    return /* @__PURE__ */ jsx("div", { className: "rounded border bg-muted/30 p-3", children: /* @__PURE__ */ jsx(props.ContentComponent, { ...props.contentProps }) });
  }
  return /* @__PURE__ */ jsx("div", { className: "rounded border bg-muted/30 p-3 text-sm whitespace-pre-wrap", children: /* @__PURE__ */ jsx(
    MarkdownContent,
    {
      body: props.detail.body,
      format: props.detail.bodyFormat,
      className: "text-sm whitespace-pre-wrap [&>*]:mb-2 [&>*:last-child]:mb-0 [&_ul]:ml-4 [&_ul]:list-disc [&_ol]:ml-4 [&_ol]:list-decimal [&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:text-xs"
    }
  ) });
}
export {
  MessageDetailBodySection
};
//# sourceMappingURL=body-panel.js.map
