"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _icon = _interopRequireDefault(require("@alifd/next/lib/icon"));
var React = _interopRequireWildcard(require("react"));
require("./index.scss");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
/* eslint-disable @typescript-eslint/no-unused-vars */

var List = function List(props) {
  // const { lists = [] } = props;

  var _props$title = props.title,
    title = _props$title === void 0 ? '标题' : _props$title,
    _props$describe = props.describe,
    describe = _props$describe === void 0 ? '描述' : _props$describe,
    _props$titleFiled = props.titleFiled,
    titleFiled = _props$titleFiled === void 0 ? 'title' : _props$titleFiled,
    _props$describeFiled = props.describeFiled,
    describeFiled = _props$describeFiled === void 0 ? 'describe' : _props$describeFiled;
  return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
    className: "material-list"
  }, props), /*#__PURE__*/React.createElement("div", {
    className: "list-item"
  }, /*#__PURE__*/React.createElement("div", {
    className: "cover-image"
  }, /*#__PURE__*/React.createElement("img", {
    src: "https://img.alicdn.com/imgextra/i3/O1CN01tnhXhk1GUIFhsXwzA_!!6000000000625-55-tps-56-56.svg",
    alt: ""
  })), /*#__PURE__*/React.createElement("div", {
    className: "content"
  }, /*#__PURE__*/React.createElement("div", {
    className: "title"
  }, props[titleFiled] || title), /*#__PURE__*/React.createElement("div", {
    className: "describe"
  }, props[describeFiled] || describe)), /*#__PURE__*/React.createElement("div", {
    className: "setting-wrapper"
  }, /*#__PURE__*/React.createElement(_icon["default"], {
    type: "ellipsis"
  }))));
};
List.displayName = 'List';
var _default = exports["default"] = List;