"use client";
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
const require_use_props = require("../../../core/MantineProvider/use-props/use-props.cjs");
const require_factory = require("../../../core/factory/factory.cjs");
const require_Box = require("../../../core/Box/Box.cjs");
const require_AppShell_context = require("../AppShell.context.cjs");
const require_AppShell_module = require("../AppShell.module.cjs");
let react_remove_scroll = require("react-remove-scroll");
let clsx = require("clsx");
clsx = require_runtime.__toESM(clsx);
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/core/src/components/AppShell/AppShellHeader/AppShellHeader.tsx
const AppShellHeader = require_factory.factory((_props) => {
	const { classNames, className, style, styles, unstyled, vars, withBorder, zIndex, mod, ...others } = require_use_props.useProps("AppShellHeader", null, _props);
	const ctx = require_AppShell_context.useAppShellContext();
	if (ctx.disabled) return null;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Box.Box, {
		component: "header",
		mod: [{ "with-border": withBorder ?? ctx.withBorder }, mod],
		...ctx.getStyles("header", {
			className: (0, clsx.default)({ [react_remove_scroll.RemoveScroll.classNames.zeroRight]: ctx.offsetScrollbars }, className),
			classNames,
			styles,
			style
		}),
		...others,
		__vars: { "--app-shell-header-z-index": (zIndex ?? ctx.zIndex)?.toString() }
	});
});
AppShellHeader.classes = require_AppShell_module.default;
AppShellHeader.displayName = "@mantine/core/AppShellHeader";
//#endregion
exports.AppShellHeader = AppShellHeader;

//# sourceMappingURL=AppShellHeader.cjs.map