import { getText } from "../../locales/index.js";
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 from "react";
import { Empty } from "antd";
import classNames from "classnames";
import Inbox01 from "@pisell/icon/es/Inbox01";
import "./index.less";
//#region src/components/pisellEmpty/index.tsx
const _excluded = [
	"description",
	"extraDescription",
	"icon",
	"footer",
	"className",
	"maxWidth"
];
const PisellEmpty = (props) => {
	const { description = getText("pisell-empty-description-no-data"), extraDescription, icon, footer, className, maxWidth } = props, others = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(Empty, _objectSpread2(_objectSpread2({}, others), {}, {
		className: classNames("pisell-empty-wrap", className),
		image: /* @__PURE__ */ React.createElement("div", { className: "pisell-empty-icon-wrap" }, icon || /* @__PURE__ */ React.createElement(Inbox01, { style: { color: "#667085" } })),
		description: /* @__PURE__ */ React.createElement("div", {
			className: "pisell-empty-wrap-description-wrap",
			style: { maxWidth: maxWidth || 300 }
		}, /* @__PURE__ */ React.createElement("div", { className: "pisell-empty-wrap-description" }, description), /* @__PURE__ */ React.createElement("div", { className: "pisell-empty-wrap-extra-description" }, extraDescription))
	}), footer);
};
//#endregion
export { PisellEmpty as default };
