import React from "react";
import { Divider } from "antd";
import classNames from "classnames";
import "./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.createElement("div", {
		className: classNames("pisell-lowcode-page-header-wrap", className),
		style
	}, /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-page-header" }, /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-page-header-left" }, showTitle && title && /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-page-header-title" }, title), showSubTitle && subTitle && /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-page-header-sub-title" }, subTitle)), /* @__PURE__ */ React.createElement("div", { className: "pisell-lowcode-page-header-extra" }, extra)), showDivider && /* @__PURE__ */ React.createElement(Divider, { className: "pisell-lowcode-page-header-divider" }));
};
//#endregion
export { PageHeader as default };
