import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import React, { useMemo } from "react";
import { Layout } from "antd";
import classNames from "classnames";
import "./index.less";
//#region src/components/pisellLayout/header.tsx
const _excluded = [
	"children",
	"className",
	"height",
	"fixed"
];
const { Header } = Layout;
const PisellHeader = (props) => {
	const { children, className, height, fixed } = props, rest = _objectWithoutProperties(props, _excluded);
	const headerStyle = useMemo(() => {
		return _objectSpread2({ height }, rest.style);
	}, [height, rest.style]);
	const headerClassName = classNames("pisell-layout-header", className, {});
	return /* @__PURE__ */ React.createElement(Header, _objectSpread2(_objectSpread2({}, rest), {}, {
		style: headerStyle,
		className: headerClassName
	}), children);
};
//#endregion
export { PisellHeader as default };
