@datalayer/icons-react
Version:
React.js and JupyterLab icons for data products.
36 lines (34 loc) • 1.11 kB
JavaScript
import * as React from "react";
const sizeMap = {
"small": 16,
"medium": 32,
"large": 64
};
function HardDriveIcon({
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: "lucide lucide-hard-drive",
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("path", {
d: "M22 12H2M5.45 5.11L2 12v6a2 2 0 002 2h16a2 2 0 002-2v-6l-3.45-6.89A2 2 0 0016.76 4H7.24a2 2 0 00-1.79 1.11zM6 16h.01M10 16h.01"
}));
}
const ForwardRef = React.forwardRef(HardDriveIcon);
export default ForwardRef;