dm-web-react
Version:
The DM web client with React.
39 lines • 1.91 kB
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
};
import * as React from "react";
var SvgIcon = function (props) {
var children = props.children, classNameProp = props.className, color = props.color, Component = props.component, fontSize = props.fontSize, nativeColor = props.nativeColor, titleAccess = props.titleAccess, viewBox = props.viewBox, width = props.width, height = props.height, other = __rest(props, ["children", "className", "color", "component", "fontSize", "nativeColor", "titleAccess", "viewBox", "width", "height"]);
var ComponentElement = Component || "svg";
return (React.createElement(ComponentElement, __assign({ focusable: "false", viewBox: viewBox, width: width, height: height, "aria-hidden": titleAccess ? "false" : "true", style: {
fill: "currentColor",
} }, other),
children,
titleAccess ? React.createElement("title", null, titleAccess) : null));
};
SvgIcon.defaultProps = {
component: "svg",
fontSize: "default",
viewBox: "0 0 24 24",
width: "24px",
height: "24px",
};
export default SvgIcon;
//# sourceMappingURL=SvgIcon.js.map