UNPKG

@sexyicons/react

Version:

React components for sexy icons: Icons speak louder than words

14 lines (11 loc) 844 B
import { __rest } from '../_virtual/_tslib.js'; import React from 'react'; const withSVG = (Component) => { return React.forwardRef((_a, forwardRef) => { var { color = "#152C70", secondaryColor = "#4296FF", size = 24, set = "line", style, label, filled = false } = _a, props = __rest(_a, ["color", "secondaryColor", "size", "set", "style", "label", "filled"]); return (React.createElement("svg", Object.assign({ width: size, height: size, fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: forwardRef, viewBox: "0 0 24 24", style: style, "aria-label": label || undefined, role: label ? "img" : "presentation" }, props), React.createElement(Component, { color: color, set: filled ? "bold" : set, secondaryColor: secondaryColor }))); }); }; export { withSVG }; //# sourceMappingURL=withSVG.js.map