UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

15 lines (14 loc) 2.66 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconCode = (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: "M14.9352 3.94412C15.0424 3.54402 14.8049 3.13277 14.4048 3.02556C14.0047 2.91835 13.5935 3.15579 13.4863 3.55589L9.06511 20.0559C8.9579 20.456 9.19534 20.8672 9.59544 20.9744C9.99554 21.0817 10.4068 20.8442 10.514 20.4441L14.9352 3.94412Z" }), _jsx("path", { d: "M6.78033 7.21967C7.07322 7.51257 7.07322 7.98744 6.78033 8.28033L3.06066 12L6.78033 15.7197C7.07322 16.0126 7.07322 16.4874 6.78033 16.7803C6.48744 17.0732 6.01256 17.0732 5.71967 16.7803L1.46967 12.5303C1.17678 12.2374 1.17678 11.7626 1.46967 11.4697L5.71967 7.21967C6.01256 6.92678 6.48744 6.92678 6.78033 7.21967Z" }), _jsx("path", { d: "M17.2197 7.21967C16.9268 7.51257 16.9268 7.98744 17.2197 8.28033L20.9393 12L17.2197 15.7197C16.9268 16.0126 16.9268 16.4874 17.2197 16.7803C17.5126 17.0732 17.9874 17.0732 18.2803 16.7803L22.5303 12.5303C22.8232 12.2374 22.8232 11.7626 22.5303 11.4697L18.2803 7.21967C17.9874 6.92678 17.5126 6.92678 17.2197 7.21967Z" })] })); 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: "M11.6122 3.01253C11.8812 3.07459 12.0491 3.34317 11.9872 3.61214L8.98723 16.6121C8.92515 16.8812 8.65665 17.0491 8.38762 16.9871C8.1186 16.9251 7.95062 16.6565 8.01262 16.3875L11.0126 3.38753C11.0748 3.11861 11.3433 2.95054 11.6122 3.01253Z" }), _jsx("path", { d: "M5.14641 6.14631C5.34166 5.95118 5.65821 5.95116 5.85344 6.14631C6.04867 6.34154 6.0486 6.65808 5.85344 6.85335L2.70696 9.99983L5.85344 13.1463C6.04867 13.3415 6.0486 13.6581 5.85344 13.8533C5.65818 14.0486 5.34167 14.0486 5.14641 13.8533L1.64641 10.3533C1.45122 10.1581 1.45117 9.84155 1.64641 9.64632L5.14641 6.14631Z" }), _jsx("path", { d: "M14.1464 6.14631C14.3417 5.95118 14.6582 5.95116 14.8534 6.14631L18.3534 9.64632C18.5487 9.84154 18.5486 10.1581 18.3534 10.3533L14.8534 13.8533C14.6582 14.0486 14.3417 14.0486 14.1464 13.8533C13.9512 13.6581 13.9512 13.3416 14.1464 13.1463L17.2929 9.99983L14.1464 6.85335C13.9512 6.65808 13.9512 6.34155 14.1464 6.14631Z" })] })); } }; IconCode.iconName = "code"; export default IconCode;