var _excluded = ["description", "extraDescription", "icon", "footer", "className"];
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React from 'react';
import { Empty } from 'antd';
import classNames from 'classnames';
import Inbox01 from '@pisell/icon/es/Inbox01';
import { getText } from "../../locales";
import "./index.less";
// 额外描述
var PisellEmpty = function PisellEmpty(props) {
  var _props$description = props.description,
    description = _props$description === void 0 ? getText('pisell-empty-description-no-data') : _props$description,
    extraDescription = props.extraDescription,
    icon = props.icon,
    footer = props.footer,
    className = props.className,
    others = _objectWithoutProperties(props, _excluded);
  return /*#__PURE__*/React.createElement(Empty, _extends({}, 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"
    }, /*#__PURE__*/React.createElement("div", {
      className: "pisell-empty-wrap-description"
    }, description), /*#__PURE__*/React.createElement("div", {
      className: "pisell-empty-wrap-extra-description"
    }, extraDescription))
  }), footer);
};
export default PisellEmpty;