const require_runtime = require("../../_virtual/_rolldown/runtime.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/page-header/index.tsx
const PageHeader = (props) => {
	const { title, showTitle, subTitle, showSubTitle, showDivider, extra, className, style } = props;
	if ((!showTitle || !title) && (!showSubTitle || !subTitle) && !extra) return null;
	return /* @__PURE__ */ react.default.createElement("div", {
		className: (0, classnames.default)("pisell-lowcode-page-header-wrap", className),
		style
	}, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode-page-header" }, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode-page-header-left" }, showTitle && title && /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode-page-header-title" }, title), showSubTitle && subTitle && /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode-page-header-sub-title" }, subTitle)), /* @__PURE__ */ react.default.createElement("div", { className: "pisell-lowcode-page-header-extra" }, extra)), showDivider && /* @__PURE__ */ react.default.createElement(antd.Divider, { className: "pisell-lowcode-page-header-divider" }));
};
//#endregion
exports.default = PageHeader;
