"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),i=require("react"),n=require("@icon-park/react/es/all"),o=require("./constants.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=s(e),c=s(t),a=s(n),f=["size","style"],l=["size","className","fill"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){u.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}exports.withCustomIconSize=function(e){return i.forwardRef((function(t,i){var n=t.size,s=void 0===n?24:n,u=t.className,a=t.fill,f=c.default(t,l),p="string"==typeof s?o.ICON_SIZES[s]:s,y=b({className:u,width:p,height:p,fill:a||"#FFFFFF",ref:i},f);return r.jsx(e,b({},y))}))},exports.withCustomSize=function(e){return function(t){var i=t.size,n=void 0===i?24:i,s=t.style,u=c.default(t,f),l="string"==typeof n?o.ICON_SIZES[n]:n;return r.jsx(a.default,b(b({strokeWidth:3},u),{},{type:e,size:l,style:b({width:l,height:l},s)}))}};
//# sourceMappingURL=WithCustomSize.js.map
