"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.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 PageShellBaseHeader = ({
  sticky,
  leftSection,
  rightSection,
  children,
  ...restProps
}) => {
  return /* @__PURE__ */ jsxRuntime.jsxs(
    Group.Group,
    {
      wrap: "nowrap",
      justify: "space-between",
      gap: 0,
      ...restProps,
      ...sticky ? { "data-sticky": sticky } : {},
      className: clsx.clsx(restProps.className, "tiui-page-shell-header"),
      sx: styles.mergeSxList([
        {
          paddingLeft: 24,
          paddingRight: 24,
          height: 64,
          "&[data-sticky=true]": {
            position: "sticky",
            zIndex: 1,
            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;
