import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import React from "react";
import { Drawer } from "antd";
import ArrowLeft from "@pisell/icon/es/ArrowLeft";
import "./index.less";
import classNames from "classnames";
//#region src/components/booking/components/drawer/index.tsx
/**
* @title: 自定义抽屉
* @description:
* @param {PisellDrawerProps} props
* @return {*}
* @Author: zhiwei.Wang
* @Date: 2024-01-30 16:51
*/
const Drawer$1 = (props) => {
	const { hideScrollBar = true, showGoBack = true, mask = false } = props;
	return /* @__PURE__ */ React.createElement(Drawer, _objectSpread2(_objectSpread2({
		width: "600px",
		closable: false,
		zIndex: 999
	}, props), {}, {
		className: classNames("pisell-lowcode__booking-drawer", props.className, { "pisell-lowcode__booking-drawer-hide-scrollbar": hideScrollBar }),
		title: false,
		bodyStyle: { padding: 0 },
		push: false,
		mask
	}), /* @__PURE__ */ React.createElement("div", { className: classNames("pisell-lowcode__booking-drawer-title-wrap") }, /* @__PURE__ */ React.createElement("div", {
		className: "pisell-lowcode__booking-drawer-title-line",
		onClick: (e) => {
			var _props$onClose;
			(_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props, e);
		}
	}, showGoBack && /* @__PURE__ */ React.createElement(ArrowLeft, { className: "pisell-lowcode__booking-drawer-back" }), /* @__PURE__ */ React.createElement("div", { className: classNames("pisell-lowcode__booking-drawer-title", { "pisell-lowcode__booking-drawer-title-no-wrap": props.titleNoWrap }) }, props.title)), props.header), /* @__PURE__ */ React.createElement("div", null, props.children));
};
//#endregion
export { Drawer$1 as default };
