import*as t from"react";import{IconContext as e,DefaultContext as r}from"./iconContext.js";function l(e){return e&&e.map(((e,r)=>t.createElement(e.tag,{key:r,...e.attr},l(e.child||[]))))}function o(e){return r=>t.createElement(n,{attr:{...e.attr},...r},l(e.child||[]))}function n(l){const o=e=>{const{attr:r,size:o,title:n,...c}=l,s=o||e.size||"1em";let a;return e.className&&(a=e.className),l.className&&(a=(a?a+" ":"")+l.className),t.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",...e.attr,...r,...c,className:a,style:{color:l.color||e.color,...e.style,...l.style},height:s,width:s,xmlns:"http://www.w3.org/2000/svg"},n&&t.createElement("title",null,n),l.children)};return void 0!==e?t.createElement(e.Consumer,null,(t=>o(t))):o(r)}export{o as GenIcon,n as IconBase};
