"use strict";

exports.__esModule = true;
exports.default = void 0;
var _isNil2 = _interopRequireDefault(require("lodash/fp/isNil"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _life = _interopRequireDefault(require("../../../../../atom/life"));
var _lives = _interopRequireDefault(require("./lives.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Lives = ({
  count
}, context) => {
  if ((0, _isNil2.default)(count)) {
    return null;
  }
  return /*#__PURE__*/_react.default.createElement("div", {
    className: _lives.default.wrapper
  }, /*#__PURE__*/_react.default.createElement(_life.default, {
    count: count,
    className: _lives.default.life,
    mode: "small"
  }));
};
Lives.propTypes = process.env.NODE_ENV !== "production" ? {
  count: _propTypes.default.number
} : {};
var _default = exports.default = Lives;
//# sourceMappingURL=lives.js.map