"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _avatar = _interopRequireDefault(require("../../../../../../components/avatar"));

require("./index.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var preCls = "home-page-data-list-columns__user";

function UserColumn(props) {
  var _props$userInfo = props.userInfo,
      name = _props$userInfo.name,
      userId = _props$userInfo.userId,
      avatarColor = _props$userInfo.avatarColor,
      avatarImg = _props$userInfo.avatarImg;
  return /*#__PURE__*/_react["default"].createElement(_avatar["default"].Name, {
    name: name,
    userId: userId,
    color: avatarColor,
    src: avatarImg,
    style: {
      marginRight: 4
    },
    textClass: "".concat(preCls, "__name"),
    textWidth: 92
  });
}

var _default = UserColumn;
exports["default"] = _default;