"use strict";

exports.__esModule = true;
exports.default = void 0;
var _getOr2 = _interopRequireDefault(require("lodash/fp/getOr"));
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const ImageElement = (skin, defaultImage) => {
  const defaultUrl = (0, _get2.default)(['images', defaultImage], skin);
  return image => {
    const url = (0, _getOr2.default)(defaultUrl, ['images', image], skin);
    const style = {
      backgroundImage: url ? `url(${url})` : 'none'
    };
    return url ? style : null;
  };
};
var _default = exports.default = ImageElement;
//# sourceMappingURL=image.js.map