"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const index = require("../../../icons/index.cjs");
;/* empty css                                                                                                                                                                                           */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                                    */
;/* empty css                                                                                                                                                                                               */
;/* empty css                                                                                                                                                                                               */
const Group = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/Group/Group.cjs");
const Box = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/Box/Box.cjs");
const ActionIcon = require("../../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.cjs");
const NavbarHeader = ({ logo, onLogoClick, onToggleCollapse, ...restProps }) => {
  const handleLogoClick = () => {
    if (onLogoClick) {
      onLogoClick();
    } else {
      history.pushState({}, "", "/");
    }
  };
  return /* @__PURE__ */ jsxRuntime.jsxs(Group.Group, { justify: "space-between", sx: { height: 64 }, ...restProps, children: [
    /* @__PURE__ */ jsxRuntime.jsx(
      Box.Box,
      {
        onClick: handleLogoClick,
        sx: {
          width: 32,
          height: 28,
          paddingLeft: 4,
          cursor: "pointer"
        },
        "aria-label": "Logo",
        children: logo
      }
    ),
    /* @__PURE__ */ jsxRuntime.jsx(ActionIcon.ActionIcon, { variant: "white", bg: "transparent", onClick: onToggleCollapse, "aria-label": "Navbar fold button", children: /* @__PURE__ */ jsxRuntime.jsx(index.IconLayoutLeft, { size: 20 }) })
  ] });
};
exports.NavbarHeader = NavbarHeader;
