"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { Button } from "@open-mercato/ui/primitives/button";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@open-mercato/ui/primitives/tooltip";
import { useT } from "@open-mercato/shared/lib/i18n/context";
import { AI_CARD_ACTIONS_BY_TYPE, resolveAiActions } from "./aiActionCatalog.js";
function ActivityAiActions({ activityType }) {
  const t = useT();
  const actions = resolveAiActions(activityType, AI_CARD_ACTIONS_BY_TYPE);
  return /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 250, children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-1.5", children: actions.map((action) => {
    const Icon = action.icon;
    return /* @__PURE__ */ jsxs(Tooltip, { children: [
      /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(
        Button,
        {
          type: "button",
          variant: "outline",
          size: "sm",
          disabled: true,
          className: "h-auto rounded-full px-2 py-1 text-xs text-muted-foreground opacity-100",
          children: [
            /* @__PURE__ */ jsx(Icon, { className: "mr-1 size-3" }),
            t(action.i18nKey, action.fallback)
          ]
        }
      ) }) }),
      /* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "text-xs", children: t("customers.ai.comingSoon", "Coming soon") })
    ] }, action.key);
  }) }) });
}
var ActivityAiActions_default = ActivityAiActions;
export {
  ActivityAiActions,
  ActivityAiActions_default as default
};
//# sourceMappingURL=ActivityAiActions.js.map
