import _getOr from "lodash/fp/getOr";
import _get from "lodash/fp/get";
const ImageElement = (skin, defaultImage) => {
  const defaultUrl = _get(['images', defaultImage], skin);
  return image => {
    const url = _getOr(defaultUrl, ['images', image], skin);
    const style = {
      backgroundImage: url ? `url(${url})` : 'none'
    };
    return url ? style : null;
  };
};
export default ImageElement;
//# sourceMappingURL=image.js.map