UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

15 lines (14 loc) 2.56 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconShare = (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.53033 6.28016C9.23744 6.57306 8.76256 6.57306 8.46967 6.28016C8.17678 5.98727 8.17678 5.5124 8.46967 5.2195L11.4749 2.2143C11.7678 1.92141 12.2426 1.92141 12.5355 2.2143L15.5407 5.2195C15.8336 5.5124 15.8336 5.98727 15.5407 6.28016C15.2478 6.57306 14.773 6.57306 14.4801 6.28016L12.75 4.55009L12.75 14.2498C12.75 14.664 12.4142 14.9998 12 14.9998C11.5858 14.9998 11.25 14.664 11.25 14.2498L11.25 4.56049L9.53033 6.28016Z" }), _jsx("path", { d: "M9 8.74983C9 8.33562 8.66421 7.99983 8.25 7.99983H6C4.89543 7.99983 4 8.89526 4 9.99983V18.9998C4 20.1044 4.89543 20.9998 6 20.9998H18C19.1046 20.9998 20 20.1044 20 18.9998V9.99983C20 8.89526 19.1046 7.99983 18 7.99983H15.75C15.3358 7.99983 15 8.33562 15 8.74983C15 9.16405 15.3358 9.49983 15.75 9.49983H18C18.2761 9.49983 18.5 9.72369 18.5 9.99983V18.9998C18.5 19.276 18.2761 19.4998 18 19.4998H6C5.72386 19.4998 5.5 19.276 5.5 18.9998V9.99983C5.5 9.72369 5.72386 9.49983 6 9.49983H8.25C8.66421 9.49983 9 9.16405 9 8.74983Z" })] })); 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.3536 2.14645C10.1583 1.95118 9.84171 1.95118 9.64645 2.14645L7.14645 4.64645C6.95118 4.84171 6.95118 5.15829 7.14645 5.35355C7.34171 5.54882 7.65829 5.54882 7.85355 5.35355L9.5 3.70711V12C9.5 12.2761 9.72386 12.5 10 12.5C10.2761 12.5 10.5 12.2761 10.5 12V3.70711L12.1464 5.35355C12.3417 5.54882 12.6583 5.54882 12.8536 5.35355C13.0488 5.15829 13.0488 4.84171 12.8536 4.64645L10.3536 2.14645Z" }), _jsx("path", { d: "M6 7C4.89543 7 4 7.89543 4 9V15C4 16.1046 4.89543 17 6 17H14C15.1046 17 16 16.1046 16 15V9C16 7.89543 15.1046 7 14 7H12.5C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14C14.5523 8 15 8.44772 15 9V15C15 15.5523 14.5523 16 14 16H6C5.44772 16 5 15.5523 5 15V9C5 8.44772 5.44772 8 6 8H7.5C7.77614 8 8 7.77614 8 7.5C8 7.22386 7.77614 7 7.5 7H6Z" })] })); } }; IconShare.iconName = "share"; export default IconShare;