"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
;/* empty css                                                                                                                                                                                        */
;/* empty css                                                                                                                                                                                         */
;/* empty css                                                                                                                                                                                                 */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                            */
const clsx = require("clsx");
const styles = require("../../utils/styles.cjs");
const Group = require("../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/esm/components/Group/Group.cjs");
const PageShellBaseHeader = ({
  sticky,
  leftSection,
  rightSection,
  children,
  ...restProps
}) => {
  return /* @__PURE__ */ jsxRuntime.jsxs(
    Group.Group,
    {
      wrap: "nowrap",
      justify: "space-between",
      gap: 0,
      ...restProps,
      className: clsx.clsx(restProps.className, "tiui-page-shell-header"),
      mod: [{ sticky }, restProps.mod],
      sx: styles.mergeSxList([
        {
          paddingLeft: 24,
          paddingRight: 24,
          height: 64,
          "&[data-sticky]": {
            position: "sticky",
            zIndex: 2,
            top: 0,
            left: 0
          }
        },
        restProps.sx
      ]),
      children: [
        leftSection,
        /* @__PURE__ */ jsxRuntime.jsx(Group.Group, { wrap: "nowrap", sx: { flex: 1, marginRight: 16 }, children }),
        rightSection
      ]
    }
  );
};
exports.PageShellBaseHeader = PageShellBaseHeader;
