Liferay.Loader.define("questions-web@1.0.58/js/components/UserRow.es", ['module', 'exports', 'require', 'frontend-js-react-web$react', 'questions-web$react-router-dom', '../components/Link.es', './UserIcon.es', './UserPopover.es'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports["default"] = void 0;

    var _react = _interopRequireDefault(require("frontend-js-react-web$react"));

    var _reactRouterDom = require("questions-web$react-router-dom");

    var _Link = _interopRequireDefault(require("../components/Link.es"));

    var _UserIcon = _interopRequireDefault(require("./UserIcon.es"));

    var _UserPopover = _interopRequireDefault(require("./UserPopover.es"));

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

    /**
     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
     *
     * This library is free software; you can redistribute it and/or modify it under
     * the terms of the GNU Lesser General Public License as published by the Free
     * Software Foundation; either version 2.1 of the License, or (at your option)
     * any later version.
     *
     * This library is distributed in the hope that it will be useful, but WITHOUT
     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
     * details.
     */
    var _default = (0, _reactRouterDom.withRouter)(function (_ref) {
      var creator = _ref.creator,
          sectionTitle = _ref.match.params.sectionTitle,
          statistics = _ref.statistics;
      return _react["default"].createElement(_Link["default"], {
        className: "align-items-center border-0 btn btn-block btn-secondary d-flex position-relative questions-user text-left text-md-right",
        to: "/questions/".concat(sectionTitle, "/creator/").concat(creator.id)
      }, _react["default"].createElement(_UserIcon["default"], {
        fullName: creator.name,
        portraitURL: creator.image,
        userId: String(creator.id)
      }), _react["default"].createElement("div", {
        className: "align align-items-start c-ml-3 d-flex flex-column"
      }, _react["default"].createElement("p", {
        className: "c-mb-0 small"
      }, Liferay.Language.get('answered-by')), _react["default"].createElement("p", {
        className: "c-mb-0 font-weight-bold text-dark"
      }, creator.name)), _react["default"].createElement(_UserPopover["default"], {
        creator: creator,
        statistics: statistics
      }));
    });

    exports["default"] = _default;
    //# sourceMappingURL=UserRow.es.js.map
  }
});
//# sourceMappingURL=UserRow.es.js.map