"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { ShieldOff } from "lucide-react";
import { Alert, AlertDescription, AlertTitle } from "../primitives/alert.js";
import { useT } from "@open-mercato/shared/lib/i18n/context";
function LoopDisabledBanner({ agentId }) {
  const t = useT();
  return /* @__PURE__ */ jsxs(
    Alert,
    {
      variant: "warning",
      icon: /* @__PURE__ */ jsx(ShieldOff, { "aria-hidden": "true" }),
      "data-ai-loop-disabled-banner": true,
      "data-ai-loop-disabled-agent-id": agentId,
      children: [
        /* @__PURE__ */ jsx(AlertTitle, { children: t("ai_assistant.loop.disabledBanner.title", "Agent loop disabled by tenant policy") }),
        /* @__PURE__ */ jsx(AlertDescription, { children: t(
          "ai_assistant.loop.disabledBanner.description",
          "The agentic loop has been disabled for this agent by a tenant administrator. Each turn runs as a single model call. To re-enable the loop, update the Loop policy in AI assistant settings."
        ) })
      ]
    }
  );
}
export {
  LoopDisabledBanner
};
//# sourceMappingURL=LoopDisabledBanner.js.map
