"use client";
import { jsx } from "react/jsx-runtime";
import { AiChatButton } from "./AiChatButton.js";
import { useCommandPaletteContext } from "./CommandPalette/CommandPaletteProvider.js";
import { useAiAssistantVisibility } from "../hooks/useAiAssistantVisibility.js";
function AiChatHeaderButton({ className }) {
  const { openChat } = useCommandPaletteContext();
  const { isEnabled, isLoaded } = useAiAssistantVisibility();
  if (!isLoaded || !isEnabled) {
    return null;
  }
  return /* @__PURE__ */ jsx(AiChatButton, { onClick: openChat, className });
}
export {
  AiChatHeaderButton
};
//# sourceMappingURL=AiChatHeaderButton.js.map
