@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
17 lines (16 loc) • 5.18 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconGame = (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: "M8.75 8.5C8.75 8.08579 8.41421 7.75 8 7.75C7.58579 7.75 7.25 8.08579 7.25 8.5V9.25H6.5C6.08579 9.25 5.75 9.58579 5.75 10C5.75 10.4142 6.08579 10.75 6.5 10.75H7.25V11.5C7.25 11.9142 7.58579 12.25 8 12.25C8.41421 12.25 8.75 11.9142 8.75 11.5V10.75H9.5C9.91421 10.75 10.25 10.4142 10.25 10C10.25 9.58579 9.91421 9.25 9.5 9.25H8.75V8.5Z" }), _jsx("path", { d: "M16 11.5C16.8284 11.5 17.5 10.8284 17.5 10C17.5 9.17157 16.8284 8.5 16 8.5C15.1716 8.5 14.5 9.17157 14.5 10C14.5 10.8284 15.1716 11.5 16 11.5Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1364 17.8486L15 15H9L6.86356 17.8486C6.31994 18.5734 5.46677 19 4.56073 19C2.72812 19 1.36209 17.3102 1.74608 15.5183L3.66123 6.58094C3.85883 5.6588 4.67376 5 5.61683 5H18.3832C19.3262 5 20.1412 5.6588 20.3388 6.58094L22.2539 15.5183C22.6379 17.3102 21.2719 19 19.4393 19C18.5332 19 17.6801 18.5734 17.1364 17.8486ZM8.25 13.5L5.66356 16.9486C5.40322 17.2957 4.99463 17.5 4.56073 17.5C3.68308 17.5 3.02889 16.6908 3.21278 15.8326L5.12793 6.89524C5.17733 6.6647 5.38106 6.5 5.61683 6.5H18.3832C18.6189 6.5 18.8227 6.6647 18.8721 6.89524L20.7872 15.8326C20.9711 16.6908 20.3169 17.5 19.4393 17.5C19.0054 17.5 18.5968 17.2957 18.3364 16.9486L15.75 13.5H8.25Z" })] }));
case "s":
return (_jsxs("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", { d: "M5 7C5.55228 7 6 6.55228 6 6C6 5.44772 5.55228 5 5 5C4.44772 5 4 5.44772 4 6C4 6.55228 4.44772 7 5 7Z" }), _jsx("path", { d: "M12 6C12 6.55228 11.5523 7 11 7C10.4477 7 10 6.55228 10 6C10 5.44772 10.4477 5 11 5C11.5523 5 12 5.44772 12 6Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.8766 13.0026L10.2937 10.47C10.111 10.1776 9.79054 10 9.44575 10H6.55425C6.20946 10 5.88899 10.1776 5.70625 10.47L4.12338 13.0026C3.73558 13.6231 3.0555 14 2.32381 14C1.07593 14 0.0960222 12.9217 0.212498 11.6793C1.03977 2.85494 1.5276 2 8 2C14.4724 2 14.9602 2.85494 15.7875 11.6793C15.904 12.9217 14.9241 14 13.6762 14C12.9445 14 12.2644 13.6231 11.8766 13.0026ZM11.1417 9.94L12.7246 12.4726C12.9297 12.8007 13.2893 13 13.6762 13C14.3336 13 14.8535 12.4298 14.7919 11.7726C14.5845 9.56052 14.4028 7.9024 14.1512 6.63952C13.8978 5.36793 13.595 4.62015 13.2243 4.14826C12.8853 3.71678 12.4204 3.4291 11.6115 3.24707C10.763 3.05612 9.62012 3 8 3C6.37988 3 5.23704 3.05612 4.38855 3.24707C3.57964 3.4291 3.11466 3.71678 2.7757 4.14826C2.405 4.62015 2.10219 5.36793 1.84884 6.63952C1.59724 7.9024 1.41551 9.56052 1.20813 11.7726C1.14653 12.4298 1.66636 13 2.32381 13C2.71071 13 3.07032 12.8007 3.27538 12.4726L4.85825 9.94C5.22373 9.35524 5.86467 9 6.55425 9H9.44575C10.1353 9 10.7763 9.35524 11.1417 9.94Z" })] }));
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", { fillRule: "evenodd", clipRule: "evenodd", d: "M9 8C9 9.10457 8.10457 10 7 10C5.89543 10 5 9.10457 5 8C5 6.89543 5.89543 6 7 6C8.10457 6 9 6.89543 9 8ZM8 8C8 8.55229 7.55229 9 7 9C6.44772 9 6 8.55229 6 8C6 7.44771 6.44772 7 7 7C7.55229 7 8 7.44771 8 8Z" }), _jsx("path", { d: "M12 8C12.5523 8 13 7.55228 13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7C11 7.55228 11.4477 8 12 8Z" }), _jsx("path", { d: "M15 9C15 9.55228 14.5523 10 14 10C13.4477 10 13 9.55228 13 9C13 8.44772 13.4477 8 14 8C14.5523 8 15 8.44772 15 9Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.7938 13.47L14.2784 15.8454C14.7273 16.5636 15.5146 17 16.3616 17C17.7873 17 18.9165 15.7853 18.7967 14.3647C17.8386 3 16.5299 3 10 3C3.47009 3 2.16137 3 1.20328 14.3647C1.08351 15.7853 2.21269 17 3.6384 17C4.48543 17 5.27272 16.5636 5.72165 15.8454L7.20625 13.47C7.38899 13.1776 7.70946 13 8.05425 13H11.9458C12.2905 13 12.611 13.1776 12.7938 13.47ZM15.1264 15.3154L13.6417 12.94C13.2763 12.3552 12.6353 12 11.9458 12H8.05425C7.36467 12 6.72373 12.3552 6.35825 12.94L4.87365 15.3154C4.60746 15.7413 4.14064 16 3.6384 16C2.79114 16 2.12974 15.279 2.19975 14.4487C2.43866 11.6147 2.69579 9.54125 3.03932 8.0139C3.38502 6.47692 3.79481 5.60767 4.2595 5.08508C4.69266 4.59795 5.25888 4.31716 6.17128 4.16373C7.12631 4.00312 8.33658 4 10 4C11.6634 4 12.8737 4.00312 13.8287 4.16373C14.7411 4.31716 15.3073 4.59795 15.7405 5.08508C16.2052 5.60767 16.615 6.47692 16.9607 8.0139C17.3042 9.54125 17.5613 11.6147 17.8003 14.4487C17.8703 15.279 17.2089 16 16.3616 16C15.8594 16 15.3925 15.7413 15.1264 15.3154Z" })] }));
}
};
IconGame.iconName = "game";
export default IconGame;