import{__rest as e,__assign as r}from"../../node_modules/tslib/tslib.es6.js";import t from"react";var c=/(.*)\.(gif|jpe?g|tiff?|png|webp|bmp)$/i;export default function(i){var m=i.src,s=void 0===m?"":m;i.useWebP;var a=e(i,["src","useWebP"]),n=s.match(c);if(null!==n){var l=n[1],o=n[2];return t.createElement("picture",{className:"Picture__WebP"},l&&!1,t.createElement("source",r({srcSet:encodeURI(s),type:"image/"+o},a)),t.createElement("img",r({src:l+".jpg"},a)))}return t.createElement("img",r({src:s},a))}
//# sourceMappingURL=PictureWithImageFallback.js.map
