UNPKG

@elgato/icons

Version:

Icons used throughout the Elgato ecosystem.

17 lines (16 loc) 4.33 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { sizeMap } from "../../metadata/sizing.js"; const IconPin = (props) => { const size = sizeMap[props?.size ?? "m"]; const label = props?.label ?? "Icon"; switch (props?.size) { case "l": return (_jsx("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", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.2197 2.21967C11.5126 1.92678 11.9874 1.92678 12.2803 2.21967L21.7803 11.7197C22.0732 12.0126 22.0732 12.4874 21.7803 12.7803C21.4874 13.0732 21.0126 13.0732 20.7197 12.7803L19.5 11.5607L12.5607 18.5L13.7803 19.7197C14.0732 20.0126 14.0732 20.4874 13.7803 20.7803C13.4874 21.0732 13.0126 21.0732 12.7197 20.7803L8.5 16.5607L4.28033 20.7803C3.98744 21.0732 3.51256 21.0732 3.21967 20.7803C2.92678 20.4874 2.92678 20.0126 3.21967 19.7197L7.43934 15.5L3.21967 11.2803C2.92678 10.9874 2.92678 10.5126 3.21967 10.2197C3.51256 9.92678 3.98744 9.92678 4.28033 10.2197L5.5 11.4393L12.4393 4.5L11.2197 3.28033C10.9268 2.98744 10.9268 2.51256 11.2197 2.21967ZM11.5 17.4393L18.4393 10.5L13.5 5.56066L6.56066 12.5L11.5 17.4393Z" }) })); case "s": return (_jsx("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", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.73727 1.56934C9.52277 0.928699 10.6818 0.97492 11.414 1.70703L14.2929 4.58594L14.4306 4.73731C15.0286 5.47047 15.0286 6.52953 14.4306 7.2627L14.2929 7.41406C13.9179 7.78908 13.4092 7.99993 12.8789 8H11.914C11.8146 8.00003 11.7182 8.02963 11.6367 8.08399L11.5605 8.14649L11.1464 8.56055C11.0527 8.65428 11 8.78152 11 8.91406V10.8789C10.9998 12.6605 8.84579 13.5527 7.5859 12.293L5.99996 10.707L2.85348 13.8535C2.65822 14.0488 2.34171 14.0488 2.14645 13.8535C1.95118 13.6583 1.95118 13.3417 2.14645 13.1465L5.29293 10L3.70699 8.41406C2.44728 7.15417 3.33945 5.00019 5.12106 5H7.0859C7.21844 4.99995 7.34569 4.94724 7.43942 4.85352L7.85348 4.43946C7.94719 4.34573 7.99992 4.21848 7.99996 4.08594V3.1211C8.00003 2.59075 8.21088 2.08205 8.5859 1.70703L8.73727 1.56934ZM10.707 2.41406C10.3409 2.0481 9.76183 2.02551 9.3691 2.34571L9.29293 2.41406C9.10545 2.60154 9.00003 2.85597 8.99996 3.1211V4.08594C8.99992 4.4837 8.84176 4.86522 8.56051 5.14649L8.14645 5.56055C7.86519 5.84181 7.48366 5.99995 7.0859 6H5.12106C4.23035 6.00019 3.78428 7.07711 4.41402 7.70703L8.29293 11.5859C8.92286 12.2157 9.99978 11.7696 9.99996 10.8789V8.91406C10 8.5163 10.1581 8.13478 10.4394 7.85352L10.8535 7.43946L10.9638 7.33985C11.2307 7.12124 11.566 7.00004 11.914 7H12.8789C13.144 6.99993 13.3984 6.89451 13.5859 6.70703L13.6543 6.63086C13.9531 6.26432 13.9531 5.73568 13.6543 5.36914L13.5859 5.29297L10.707 2.41406Z" }) })); default: return (_jsx("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", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.4142 2.70723C12.1543 1.4473 10 2.33963 10 4.12144V5.3788C10 5.64402 9.89464 5.89837 9.70711 6.08591L9.08579 6.70723C8.89825 6.89476 8.6439 7.00012 8.37868 7.00012H5.62132C3.83951 7.00012 2.94718 9.1544 4.20711 10.4143L6.54289 12.7501L3.14645 16.1466C2.95118 16.3418 2.95118 16.6584 3.14645 16.8537C3.34171 17.0489 3.65829 17.0489 3.85355 16.8537L7.25 13.4572L9.58579 15.793C10.8457 17.0529 13 16.1606 13 14.3788V11.6214C13 11.3562 13.1054 11.1019 13.2929 10.9143L13.9142 10.293C14.1017 10.1055 14.3561 10.0001 14.6213 10.0001H15.8787C17.6605 10.0001 18.5528 7.84584 17.2929 6.58591L13.4142 2.70723ZM11 4.12144C11 3.23054 12.0771 2.78437 12.7071 3.41433L16.5858 7.29302C17.2158 7.92298 16.7696 9.00012 15.8787 9.00012H14.6213C14.0909 9.00012 13.5822 9.21083 13.2071 9.58591L12.5858 10.2072C12.2107 10.5823 12 11.091 12 11.6214V14.3788C12 15.2697 10.9229 15.7159 10.2929 15.0859L4.91421 9.70723C4.28425 9.07726 4.73042 8.00012 5.62132 8.00012H8.37868C8.90911 8.00012 9.41782 7.78941 9.79289 7.41433L10.4142 6.79301C10.7893 6.41794 11 5.90923 11 5.3788V4.12144Z" }) })); } }; IconPin.iconName = "pin"; export default IconPin;