@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 1.76 kB
JavaScript
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", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 24 24", width: size, height: size, "aria-label": label, role: "img", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M11.22 2.22a.75.75 0 0 1 1.06 0l9.5 9.5a.75.75 0 1 1-1.06 1.06l-1.22-1.22-6.94 6.94 1.22 1.22a.75.75 0 1 1-1.06 1.06L8.5 16.56l-4.22 4.22a.75.75 0 0 1-1.06-1.06l4.22-4.22-4.22-4.22a.75.75 0 1 1 1.06-1.06l1.22 1.22 6.94-6.94-1.22-1.22a.75.75 0 0 1 0-1.06m.28 15.22 6.94-6.94-4.94-4.94-6.94 6.94z", clipRule: "evenodd" }) }));
default:
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", width: size, height: size, "aria-label": label, role: "img", ...props, children: _jsx("path", { fillRule: "evenodd", d: "M13.414 2.707C12.154 1.447 10 2.34 10 4.121V5.38a1 1 0 0 1-.293.707l-.621.621A1 1 0 0 1 8.379 7H5.62C3.84 7 2.947 9.154 4.207 10.414l2.336 2.336-3.397 3.397a.5.5 0 1 0 .708.707l3.396-3.397 2.336 2.336c1.26 1.26 3.414.368 3.414-1.414V11.62a1 1 0 0 1 .293-.707l.621-.621a1 1 0 0 1 .707-.293h1.258c1.781 0 2.674-2.154 1.414-3.414zM11 4.121c0-.89 1.077-1.337 1.707-.707l3.879 3.879c.63.63.184 1.707-.707 1.707H14.62a2 2 0 0 0-1.414.586l-.621.621A2 2 0 0 0 12 11.621v2.758c0 .89-1.077 1.337-1.707.707L4.914 9.707C4.284 9.077 4.73 8 5.621 8H8.38a2 2 0 0 0 1.414-.586l.621-.621A2 2 0 0 0 11 5.379z", clipRule: "evenodd" }) }));
}
};
IconPin.iconName = "pin";
export default IconPin;