@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
17 lines (16 loc) • 2.71 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconDownload = (props) => {
const size = sizeMap[props?.size ?? "m"];
const label = props?.label ?? "Icon";
switch (props?.size) {
case "l":
return (_jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M12 3C12.4142 3 12.75 3.33579 12.75 3.75V15.1893L16.7197 11.2197C17.0126 10.9268 17.4874 10.9268 17.7803 11.2197C18.0732 11.5126 18.0732 11.9874 17.7803 12.2803L12.5303 17.5303C12.2374 17.8232 11.7626 17.8232 11.4697 17.5303L6.21967 12.2803C5.92678 11.9874 5.92678 11.5126 6.21967 11.2197C6.51256 10.9268 6.98744 10.9268 7.28033 11.2197L11.25 15.1893V3.75C11.25 3.33579 11.5858 3 12 3Z" }), _jsx("path", { d: "M3.75 19.5C3.33579 19.5 3 19.8358 3 20.25C3 20.6642 3.33579 21 3.75 21H20.25C20.6642 21 21 20.6642 21 20.25C21 19.8358 20.6642 19.5 20.25 19.5H3.75Z" })] }));
case "s":
return (_jsxs("svg", { viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M8.5 2.5C8.5 2.22386 8.27614 2 8 2C7.72386 2 7.5 2.22386 7.5 2.5V9.79289L4.85355 7.14645C4.65829 6.95118 4.34171 6.95118 4.14645 7.14645C3.95118 7.34171 3.95118 7.65829 4.14645 7.85355L7.64645 11.3536C7.84171 11.5488 8.15829 11.5488 8.35355 11.3536L11.8536 7.85355C12.0488 7.65829 12.0488 7.34171 11.8536 7.14645C11.6583 6.95118 11.3417 6.95118 11.1464 7.14645L8.5 9.79289V2.5Z" }), _jsx("path", { d: "M2.5 13C2.22386 13 2 13.2239 2 13.5C2 13.7761 2.22386 14 2.5 14H13.5C13.7761 14 14 13.7761 14 13.5C14 13.2239 13.7761 13 13.5 13H2.5Z" })] }));
default:
return (_jsxs("svg", { viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M10.5 3.5C10.5 3.22386 10.2761 3 10 3C9.72386 3 9.5 3.22386 9.5 3.5V12.7929L5.85355 9.14645C5.65829 8.95118 5.34171 8.95118 5.14645 9.14645C4.95118 9.34171 4.95118 9.65829 5.14645 9.85355L9.64645 14.3536C9.84171 14.5488 10.1583 14.5488 10.3536 14.3536L14.8536 9.85355C15.0488 9.65829 15.0488 9.34171 14.8536 9.14645C14.6583 8.95118 14.3417 8.95118 14.1464 9.14645L10.5 12.7929V3.5Z" }), _jsx("path", { d: "M3.5 17C3.22386 17 3 16.7761 3 16.5C3 16.2239 3.22386 16 3.5 16H16.5C16.7761 16 17 16.2239 17 16.5C17 16.7761 16.7761 17 16.5 17H3.5Z" })] }));
}
};
IconDownload.iconName = "download";
export default IconDownload;