UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

15 lines (14 loc) 3.24 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconCodeBlock = (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: "M9.71973 8.21973C10.0126 7.92683 10.4874 7.92683 10.7803 8.21973C11.0732 8.51262 11.0732 8.98738 10.7803 9.28027L8.06055 12L10.7803 14.7197L10.832 14.7764C11.0723 15.0709 11.0549 15.5057 10.7803 15.7803C10.5057 16.0549 10.0709 16.0723 9.77637 15.832L9.71973 15.7803L6.46973 12.5303C6.17683 12.2374 6.17683 11.7626 6.46973 11.4697L9.71973 8.21973Z" }), _jsx("path", { d: "M13.2197 8.21973C13.5126 7.92683 13.9874 7.92683 14.2803 8.21973L17.5303 11.4697C17.8232 11.7626 17.8232 12.2374 17.5303 12.5303L14.2803 15.7803L14.2236 15.832C13.9291 16.0723 13.4943 16.0549 13.2197 15.7803C12.9451 15.5057 12.9277 15.0709 13.168 14.7764L13.2197 14.7197L15.9395 12L13.2197 9.28027C12.9268 8.98738 12.9268 8.51262 13.2197 8.21973Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.2041 3.01074C20.2128 3.113 21 3.96435 21 5V19L20.9893 19.2041C20.8938 20.1457 20.1457 20.8938 19.2041 20.9893L19 21H5L4.7959 20.9893C3.85435 20.8938 3.1062 20.1457 3.01074 19.2041L3 19V5C3 3.96435 3.78722 3.113 4.7959 3.01074L5 3H19L19.2041 3.01074ZM5 4.5C4.72386 4.5 4.5 4.72386 4.5 5V19C4.5 19.2761 4.72386 19.5 5 19.5H19C19.2761 19.5 19.5 19.2761 19.5 19V5C19.5 4.72386 19.2761 4.5 19 4.5H5Z" })] })); 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: "M8.22461 7.08203C8.41869 6.95387 8.68265 6.97562 8.85352 7.14648C9.02438 7.31735 9.04613 7.58131 8.91797 7.77539L8.85352 7.85352L6.70703 10L8.85352 12.1465L8.91797 12.2246C9.04613 12.4187 9.02438 12.6827 8.85352 12.8535C8.68265 13.0244 8.41869 13.0461 8.22461 12.918L8.14648 12.8535L5.64648 10.3535C5.45122 10.1583 5.45122 9.84175 5.64648 9.64648L8.14648 7.14648L8.22461 7.08203Z" }), _jsx("path", { d: "M11.1465 7.14648C11.3173 6.97562 11.5813 6.95387 11.7754 7.08203L11.8535 7.14648L14.3535 9.64648C14.5488 9.84175 14.5488 10.1583 14.3535 10.3535L11.8535 12.8535L11.7754 12.918C11.5813 13.0461 11.3173 13.0244 11.1465 12.8535C10.9756 12.6827 10.9539 12.4187 11.082 12.2246L11.1465 12.1465L13.293 10L11.1465 7.85352L11.082 7.77539C10.9539 7.58131 10.9756 7.31735 11.1465 7.14648Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.2041 3.01074C16.2128 3.113 17 3.96435 17 5V15L16.9893 15.2041C16.8938 16.1457 16.1457 16.8938 15.2041 16.9893L15 17H5L4.7959 16.9893C3.85435 16.8938 3.1062 16.1457 3.01074 15.2041L3 15V5C3 3.96435 3.78722 3.113 4.7959 3.01074L5 3H15L15.2041 3.01074ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16H15C15.5523 16 16 15.5523 16 15V5C16 4.44772 15.5523 4 15 4H5Z" })] })); } }; IconCodeBlock.iconName = "code-block"; export default IconCodeBlock;