@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.71 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconView = (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", { fillRule: "evenodd", clipRule: "evenodd", d: "M16 12C16 14.2091 14.2092 16 12 16C9.79088 16 8.00002 14.2091 8.00002 12C8.00002 9.79086 9.79088 8 12 8C14.2092 8 16 9.79086 16 12ZM14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.50002 13.3807 9.50002 12C9.50002 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.27658 11.118C3.49949 9.23662 6.82759 5 12 5C17.1724 5 20.5006 9.23662 21.7235 11.118C22.0754 11.6594 22.0754 12.3406 21.7235 12.882C20.5006 14.7634 17.1724 19 12 19C6.82759 19 3.49949 14.7634 2.27658 12.882C1.92465 12.3406 1.92465 11.6594 2.27658 11.118ZM3.53424 11.9355C4.7288 10.0977 7.66514 6.5 12 6.5C16.3349 6.5 19.2712 10.0977 20.4658 11.9355C20.4835 11.9626 20.4874 11.9843 20.4874 12C20.4874 12.0157 20.4835 12.0374 20.4658 12.0645C19.2712 13.9023 16.3349 17.5 12 17.5C7.66514 17.5 4.7288 13.9023 3.53424 12.0645C3.51657 12.0374 3.51263 12.0157 3.51263 12C3.51263 11.9843 3.51657 11.9626 3.53424 11.9355Z" })] }));
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: "M13 10C13 11.6569 11.6569 13 10 13C8.34315 13 7.00001 11.6569 7.00001 10C7.00001 8.34315 8.34315 7 10 7C11.6569 7 13 8.34315 13 10ZM12 10C12 11.1046 11.1046 12 10 12C8.89544 12 8.00001 11.1046 8.00001 10C8.00001 8.89543 8.89544 8 10 8C11.1046 8 12 8.89543 12 10Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.77382 10.6565C1.5878 10.2387 1.5878 9.76132 1.77382 9.34346C3.17539 6.19506 6.33135 4 10 4C13.6687 4 16.8246 6.19506 18.2262 9.34346C18.4122 9.76133 18.4122 10.2387 18.2262 10.6565C16.8246 13.8049 13.6687 16 10 16C6.33136 16 3.17539 13.8049 1.77382 10.6565ZM2.68739 9.75015C3.93418 6.94942 6.74053 5 10 5C13.2595 5 16.0658 6.94943 17.3126 9.75015C17.3834 9.90914 17.3834 10.0909 17.3126 10.2499C16.0658 13.0506 13.2595 15 10 15C6.74053 15 3.93418 13.0506 2.68739 10.2499C2.61661 10.0909 2.61661 9.90913 2.68739 9.75015Z" })] }));
}
};
IconView.iconName = "view";
export default IconView;