import {
  CopilotDevConsole
} from "./chunk-YZVGZOAS.mjs";
import {
  useChatContext
} from "./chunk-IEMQ2SQW.mjs";

// src/components/chat/Header.tsx
import { jsx, jsxs } from "react/jsx-runtime";
var Header = ({}) => {
  const { setOpen, icons, labels } = useChatContext();
  return /* @__PURE__ */ jsxs("div", { className: "copilotKitHeader", children: [
    /* @__PURE__ */ jsx("div", { children: labels.title }),
    /* @__PURE__ */ jsxs("div", { className: "copilotKitHeaderControls", children: [
      /* @__PURE__ */ jsx(CopilotDevConsole, {}),
      /* @__PURE__ */ jsx(
        "button",
        {
          onClick: () => setOpen(false),
          "aria-label": "Close",
          className: "copilotKitHeaderCloseButton",
          children: icons.headerCloseIcon
        }
      )
    ] })
  ] });
};

export {
  Header
};
//# sourceMappingURL=chunk-P2MPL4JR.mjs.map