"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { Mail } from "lucide-react";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { Badge } from "@open-mercato/ui/primitives/badge";
function InboxEmailPreview({
  previewData,
  actionRequired,
  actionLabel
}) {
  const t = useT();
  return /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 rounded-md border bg-muted/30 p-3", children: [
    /* @__PURE__ */ jsx(Mail, { className: "mt-0.5 h-4 w-4 text-muted-foreground" }),
    /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-1", children: [
      /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
        /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: previewData?.title || t("inbox_ops.title", "AI Inbox Actions") }),
        actionRequired ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs", children: actionLabel || t("messages.composer.objectActionRequired", "Action required") }) : null
      ] }),
      previewData?.subtitle ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: previewData.subtitle }) : null,
      previewData?.status ? /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "text-xs", children: previewData.status }) : null
    ] })
  ] });
}
var InboxEmailPreview_default = InboxEmailPreview;
export {
  InboxEmailPreview,
  InboxEmailPreview_default as default
};
//# sourceMappingURL=InboxEmailPreview.js.map
