UNPKG

iconoir-react

Version:

React library for Iconoir, the biggest open source icon library with tons of free icons.

2 lines (1 loc) 1.75 kB
"use client";var u=Object.create;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,V=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var C=(o,r,t)=>r in o?n(o,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[r]=t,i=(o,r)=>{for(var t in r||(r={}))l.call(r,t)&&C(o,t,r[t]);if(p)for(var t of p(r))h.call(r,t)&&C(o,t,r[t]);return o};var w=(o,r)=>{for(var t in r)n(o,t,{get:r[t],enumerable:!0})},c=(o,r,t,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of k(r))!l.call(o,e)&&e!==t&&n(o,e,{get:()=>r[e],enumerable:!(s=a(r,e))||s.enumerable});return o};var S=(o,r,t)=>(t=o!=null?u(V(o)):{},c(r||!o||!o.__esModule?n(t,"default",{value:o,enumerable:!0}):t,o)),g=o=>c(n({},"__esModule",{value:!0}),o);var H={};w(H,{default:()=>v});module.exports=g(H);var m=S(require("react")),f=require("react"),d=require("../IconoirContext.js");const x=(o,r)=>{const t=m.useContext(d.IconoirContext),s=i(i({},t),o);return m.createElement("svg",i({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:r},s),m.createElement("path",{d:"M16 2H8C4.68629 2 2 4.68629 2 8V16C2 19.3137 4.68629 22 8 22H16C19.3137 22 22 19.3137 22 16V8C22 4.68629 19.3137 2 16 2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"2 2"}),m.createElement("path",{d:"M16 5H8C6.34315 5 5 6.34315 5 8V16C5 17.6569 6.34315 19 8 19H16C17.6569 19 19 17.6569 19 16V8C19 6.34315 17.6569 5 16 5Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},G=(0,f.forwardRef)(x);var v=G;