UNPKG

ivt

Version:

Ivt Components Library

3 lines (2 loc) 902 B
import{forwardRef as e,createElement as r}from"react";const o=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim();var t={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const i=e(({color:e="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:n="",children:c,iconNode:l,...d},m)=>r("svg",{ref:m,...t,width:i,height:i,stroke:e,strokeWidth:a?24*Number(s)/Number(i):s,className:o("lucide",n),...d},[...l.map(([e,o])=>r(e,o)),...Array.isArray(c)?c:[c]])),s=(t,s)=>{const a=e(({className:e,...a},n)=>{return r(i,{ref:n,iconNode:s,className:o(`lucide-${c=t,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,e),...a});var c});return a.displayName=`${t}`,a};export{s as c}; //# sourceMappingURL=createLucideIcon-D1jKv6AP.mjs.map