UNPKG

@solar-icons/react

Version:
61 lines (60 loc) 1.43 kB
var v = Object.defineProperty; var l = Object.getOwnPropertySymbols; var n = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable; var i = (e, r, t) => r in e ? v(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, m = (e, r) => { for (var t in r || (r = {})) n.call(r, t) && i(e, t, r[t]); if (l) for (var t of l(r)) c.call(r, t) && i(e, t, r[t]); return e; }; var w = (e, r) => { var t = {}; for (var o in e) n.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]); if (e != null && l) for (var o of l(e)) r.indexOf(o) < 0 && c.call(e, o) && (t[o] = e[o]); return t; }; import d, { forwardRef as R } from "react"; const S = R((e, r) => { const a = e, { alt: t, color: o = "currentColor", size: s = "1em", weight: f = "Linear", mirrored: g = !1, children: h, weights: p } = a, u = w(a, [ "alt", "color", "size", "weight", "mirrored", "children", "weights" ]); return /* @__PURE__ */ d.createElement( "svg", m({ ref: r, xmlns: "http://www.w3.org/2000/svg", width: s, height: s, color: o, fill: "none", viewBox: "0 0 24 24", transform: g ? "scale(-1, 1)" : void 0 }, u), !!t && /* @__PURE__ */ d.createElement("title", null, t), h, p.get(f) ); }); S.displayName = "SSRBase"; export { S as default };