"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { AiIcon } from "@open-mercato/ui/ai/AiIcon";
import { Button } from "@open-mercato/ui/primitives/button";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@open-mercato/ui/primitives/tooltip";
import { AI_TIMELINE_ACTIONS_BY_TYPE, resolveAiActions } from "./aiActionCatalog.js";
function AiActionChips({ activityType }) {
  const t = useT();
  const actions = resolveAiActions(activityType, AI_TIMELINE_ACTIONS_BY_TYPE);
  return /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
    /* @__PURE__ */ jsx("span", { className: "text-[9px] font-bold text-muted-foreground/70", children: t("customers.ai.prefix", "AI:") }),
    actions.map((action) => /* @__PURE__ */ jsxs(Tooltip, { children: [
      /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
        Button,
        {
          type: "button",
          variant: "outline",
          size: "sm",
          className: "h-auto gap-1 rounded-[4px] border-dashed bg-card pl-1.5 pr-[7px] py-[3px] text-[9px] font-medium text-muted-foreground/70 shadow-none hover:border-muted-foreground hover:text-foreground",
          children: [
            /* @__PURE__ */ jsx(AiIcon, { className: "size-2.5 shrink-0" }),
            t(action.i18nKey, action.fallback)
          ]
        }
      ) }),
      /* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "text-xs", children: t("customers.ai.comingSoon", "Coming soon") })
    ] }, action.key))
  ] }) });
}
export {
  AiActionChips
};
//# sourceMappingURL=AiActionChips.js.map
