const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/pisellLayout/header.tsx
const _excluded = [
	"children",
	"className",
	"height",
	"fixed"
];
const { Header } = antd.Layout;
const PisellHeader = (props) => {
	const { children, className, height, fixed } = props, rest = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const headerStyle = (0, react.useMemo)(() => {
		return require_objectSpread2._objectSpread2({ height }, rest.style);
	}, [height, rest.style]);
	const headerClassName = (0, classnames.default)("pisell-layout-header", className, {});
	return /* @__PURE__ */ react.default.createElement(Header, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, rest), {}, {
		style: headerStyle,
		className: headerClassName
	}), children);
};
//#endregion
exports.default = PisellHeader;
