@datalayer/icons-react
Version:
React.js and JupyterLab icons for data products.
43 lines (41 loc) • 1.16 kB
JavaScript
const React = require("react");
const sizeMap = {
"small": 16,
"medium": 32,
"large": 64
};
function CpuIcon({
title,
titleId,
size,
colored,
...props
}, svgRef) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
fill: colored ? 'none' : (['#fff', '#fffff', 'white', '#FFF', '#FFFFFF'].includes('none') ? 'white' : 'currentColor'),
stroke: "currentColor",
strokeLinecap: "round",
width: size ? typeof size === "string" ? sizeMap[size] : size : "16px",
strokeLinejoin: "round",
strokeWidth: 2,
className: "feather feather-cpu",
viewBox: "0 0 24 24",
"aria-hidden": "true",
ref: svgRef,
"aria-labelledby": titleId
}, props), title ? /*#__PURE__*/React.createElement("title", {
id: titleId
}, title) : null, /*#__PURE__*/React.createElement("rect", {
width: 16,
height: 16,
x: 4,
y: 4,
rx: 2,
ry: 2
}), /*#__PURE__*/React.createElement("path", {
d: "M9 9h6v6H9zM9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3"
}));
}
const ForwardRef = React.forwardRef(CpuIcon);
module.exports = ForwardRef;