UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

15 lines (14 loc) 2.44 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconLink = (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: "M3.49756 12C3.49756 8.96281 5.962 6.5 8.99994 6.5H9.24994C9.66415 6.5 9.99994 6.16421 9.99994 5.75C9.99994 5.33579 9.66415 5 9.24994 5H8.99994C5.13432 5 1.99756 8.13364 1.99756 12C1.99756 15.8664 5.13432 19 8.99994 19H9.24994C9.66415 19 9.99994 18.6642 9.99994 18.25C9.99994 17.8358 9.66415 17.5 9.24994 17.5H8.99994C5.962 17.5 3.49756 15.0372 3.49756 12Z" }), _jsx("path", { d: "M14.7499 5C14.3357 5 13.9999 5.33579 13.9999 5.75C13.9999 6.16421 14.3357 6.5 14.7499 6.5H14.9999C18.0379 6.5 20.5022 8.96279 20.5022 12C20.5022 15.0372 18.0379 17.5 14.9999 17.5H14.7499C14.3357 17.5 13.9999 17.8358 13.9999 18.25C13.9999 18.6642 14.3357 19 14.7499 19H14.9999C18.8656 19 22.0022 15.8664 22.0022 12C22.0022 8.13365 18.8656 5 14.9999 5H14.7499Z" }), _jsx("path", { d: "M8.74992 11.25C8.33571 11.25 7.99992 11.5858 7.99992 12C7.99992 12.4142 8.33571 12.75 8.74992 12.75H15.2499C15.6641 12.75 15.9999 12.4142 15.9999 12C15.9999 11.5858 15.6641 11.25 15.2499 11.25H8.74992Z" })] })); 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: "M2 10C2 7.23858 4.23858 5 7 5H7.5C7.77614 5 8 5.22386 8 5.5C8 5.77614 7.77614 6 7.5 6H7C4.79086 6 3 7.79086 3 10C3 12.2091 4.79086 14 7 14H7.5C7.77614 14 8 14.2239 8 14.5C8 14.7761 7.77614 15 7.5 15H7C4.23858 15 2 12.7614 2 10Z" }), _jsx("path", { d: "M18 10C18 7.23858 15.7614 5 13 5H12.5C12.2239 5 12 5.22386 12 5.5C12 5.77614 12.2239 6 12.5 6H13C15.2091 6 17 7.79086 17 10C17 12.2091 15.2091 14 13 14H12.5C12.2239 14 12 14.2239 12 14.5C12 14.7761 12.2239 15 12.5 15H13C15.7614 15 18 12.7614 18 10Z" }), _jsx("path", { d: "M7.5 9.5C7.22386 9.5 7 9.72386 7 10C7 10.2761 7.22386 10.5 7.5 10.5H12.5C12.7761 10.5 13 10.2761 13 10C13 9.72386 12.7761 9.5 12.5 9.5H7.5Z" })] })); } }; IconLink.iconName = "link"; export default IconLink;