in modules/mlvis-common/src/icons/base.js [58:93]
render() {
const {
height,
width,
viewBox,
style = {},
children,
predefinedClassName,
className,
colors,
totalColor,
...props
} = this.props;
const svgHeight = height;
const svgWidth = width || svgHeight;
style.fill = 'currentColor';
const fillStyle =
Array.isArray(colors) &&
totalColor &&
getStyleClassFromColor(totalColor, colors);
return (
<svg
viewBox={viewBox}
width={svgWidth}
height={svgHeight}
style={style}
className={`${predefinedClassName} ${className}`}
{...props}
>
{fillStyle ? <style type="text/css">{fillStyle}</style> : null}
{children}
</svg>
);
}