"use client";
import { jsx, jsxs } from "react/jsx-runtime";
import { Loader2 } from "lucide-react";
import { useT } from "@open-mercato/shared/lib/i18n/context";
function AgentStatusIndicator({ status }) {
  const t = useT();
  if (status.type === "idle") return null;
  let message;
  switch (status.type) {
    case "thinking":
      message = t("ai_assistant.status.thinking");
      break;
    case "responding":
      message = t("ai_assistant.status.responding");
      break;
    case "tool":
      message = status.toolName;
      break;
    case "executing":
      message = t("ai_assistant.status.executing");
      break;
    default:
      message = t("ai_assistant.status.working");
  }
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-3 px-3 bg-muted/50 rounded-lg text-muted-foreground text-sm", children: [
    /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }),
    /* @__PURE__ */ jsx("span", { children: message })
  ] });
}
export {
  AgentStatusIndicator
};
//# sourceMappingURL=AgentStatusIndicator.js.map
