@datalayer/icons-react
Version:
React.js and JupyterLab icons for data products.
31 lines (29 loc) • 1.37 kB
JavaScript
import * as React from "react";
const sizeMap = {
"small": 16,
"medium": 32,
"large": 64
};
function TerminalIcon({
title,
titleId,
size,
colored,
...props
}, svgRef) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
fill: colored ? 'currentColor' : (['#fff', '#fffff', 'white', '#FFF', '#FFFFFF'].includes('currentColor') ? 'white' : 'currentColor'),
viewBox: "0 0 20 20",
"aria-hidden": "true",
width: size ? typeof size === "string" ? sizeMap[size] : size : "16px",
ref: svgRef,
"aria-labelledby": titleId
}, props), title ? /*#__PURE__*/React.createElement("title", {
id: titleId
}, title) : null, /*#__PURE__*/React.createElement("path", {
d: "M.02 3.471c0-1.207.98-2.187 2.187-2.187h15.625c1.208 0 2.188.98 2.188 2.187v13.125a2.188 2.188 0 01-2.188 2.188H2.207A2.187 2.187 0 01.02 16.596V3.471zm2.187-.312a.312.312 0 00-.312.312v13.125c0 .173.14.313.312.313h15.625a.313.313 0 00.313-.313V3.471a.312.312 0 00-.313-.312H2.207zm6.875 6.875a.937.937 0 01-.275.662L5.995 13.51a.937.937 0 11-1.325-1.325l2.15-2.15-2.15-2.15a.936.936 0 01.903-1.586.936.936 0 01.422.26l2.812 2.813a.933.933 0 01.275.663zm1.875 1.875h3.75a.938.938 0 010 1.875h-3.75a.937.937 0 110-1.875z"
}));
}
const ForwardRef = React.forwardRef(TerminalIcon);
export default ForwardRef;