"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { ArrowRight, Check, Info, Trophy, X } from "lucide-react";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { Button } from "@open-mercato/ui/primitives/button";
function DealClosureActionBar({
  closureOutcome,
  onWon,
  onLost,
  disabled = false,
  embedded = false
}) {
  const t = useT();
  if (closureOutcome) return null;
  return /* @__PURE__ */ jsx("div", { className: embedded ? "" : "rounded-2xl border bg-card px-5 py-4", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between", children: [
    /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs font-medium text-muted-foreground", children: [
      /* @__PURE__ */ jsx(Info, { className: "size-4 text-muted-foreground" }),
      /* @__PURE__ */ jsx("span", { children: t("customers.deals.detail.closure.prompt", "Close deal \u2014 choose outcome") }),
      /* @__PURE__ */ jsx("span", { className: "text-border", children: "\xB7" })
    ] }),
    /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
      /* @__PURE__ */ jsxs(
        Button,
        {
          type: "button",
          size: "sm",
          onClick: onWon,
          disabled,
          className: "h-11 rounded-lg bg-status-success-icon px-5 text-sm font-semibold text-white hover:bg-status-success-icon/90",
          children: [
            /* @__PURE__ */ jsx(Trophy, { className: "size-4" }),
            t("customers.deals.detail.closure.won", "Won"),
            /* @__PURE__ */ jsx(Check, { className: "size-4 stroke-[2.5]" })
          ]
        }
      ),
      /* @__PURE__ */ jsxs(
        Button,
        {
          type: "button",
          size: "sm",
          variant: "outline",
          onClick: onLost,
          disabled,
          className: "h-11 rounded-lg border-status-error-border px-5 text-sm font-semibold text-status-error-text hover:bg-status-error-bg",
          children: [
            /* @__PURE__ */ jsx(X, { className: "size-4 stroke-[2.5]" }),
            t("customers.deals.detail.closure.lost", "Lost"),
            /* @__PURE__ */ jsx(ArrowRight, { className: "size-4" })
          ]
        }
      )
    ] })
  ] }) });
}
export {
  DealClosureActionBar
};
//# sourceMappingURL=DealClosureActionBar.js.map
