"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = Winner;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
require("./index.scss");
function Winner(props) {
  return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
    className: "winner"
  }, props.winnerStyle), props.list.map(function (item, index) {
    return /*#__PURE__*/React.createElement("div", {
      key: index + item,
      className: "winner-items"
    }, /*#__PURE__*/React.createElement("div", {
      className: "item"
    }, item.time || '10分钟前'), /*#__PURE__*/React.createElement("div", {
      className: "item"
    }, item.phone.replace(/^(1[34578]\d)(\d{4})(\d{4})$/, '$1****$3')), /*#__PURE__*/React.createElement("div", {
      className: "item"
    }, item.prize));
  }));
}