"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { Badge } from "@open-mercato/ui/primitives/badge";
function InboxEmailContent({ message }) {
  const t = useT();
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
    /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
      /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs", children: t("inbox_ops.title", "AI Inbox Actions") }),
      message.senderName ? /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: message.senderName }) : null
    ] }),
    /* @__PURE__ */ jsxs("div", { children: [
      /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold", children: message.subject }),
      message.sentAt ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: new Date(message.sentAt).toLocaleString() }) : null
    ] }),
    message.body ? /* @__PURE__ */ jsx("pre", { className: "whitespace-pre-wrap break-words rounded-md bg-muted/30 p-4 text-sm leading-relaxed", children: message.body }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("inbox_ops.no_email_content", "No email content available") })
  ] });
}
var InboxEmailContent_default = InboxEmailContent;
export {
  InboxEmailContent,
  InboxEmailContent_default as default
};
//# sourceMappingURL=InboxEmailContent.js.map
