@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.9 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconToken = (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: "M4 6.22639C3.3812 6.58366 3 7.24391 3 7.95844V16.0413C3 16.7559 3.3812 17.4161 4 17.7734L11 21.8148C11.6188 22.1721 12.3812 22.1721 13 21.8148L20 17.7734C20.6188 17.4161 21 16.7559 21 16.0413V7.95844C21 7.24391 20.6188 6.58366 20 6.22639L13 2.18494C12.3812 1.82768 11.6188 1.82768 11 2.18494L4 6.22639ZM8.97234 9.38585L5.25 7.23676L11.75 3.48398C11.9047 3.39466 12.0953 3.39466 12.25 3.48398L18.75 7.23676L15.0277 9.38585C14.2942 8.53709 13.2098 8 12 8C10.7902 8 9.70582 8.53709 8.97234 9.38585ZM15.7786 10.6843C15.922 11.0964 16 11.5391 16 12C16 13.9528 14.6006 15.5787 12.75 15.9298V20.2271L19.25 16.4744C19.4047 16.385 19.5 16.22 19.5 16.0413V8.53579L15.7786 10.6843ZM11.25 15.9298V20.2271L4.75 16.4744C4.5953 16.385 4.5 16.22 4.5 16.0413V8.53579L8.22141 10.6843C8.07796 11.0964 8 11.5391 8 12C8 13.9528 9.39935 15.5787 11.25 15.9298ZM14.5 12C14.5 13.3807 13.3807 14.5 12 14.5C10.6193 14.5 9.5 13.3807 9.5 12C9.5 10.6193 10.6193 9.5 12 9.5C13.3807 9.5 14.5 10.6193 14.5 12Z" }) }));
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: "M11 2.49427C10.3812 2.137 9.6188 2.137 9 2.49427L4 5.38102C3.3812 5.73828 3 6.39854 3 7.11307V12.8866C3 13.6011 3.3812 14.2614 4 14.6186L9 17.5054C9.6188 17.8626 10.3812 17.8626 11 17.5054L16 14.6186C16.6188 14.2614 17 13.6011 17 12.8866V7.11307C17 6.39854 16.6188 5.73828 16 5.38102L11 2.49427ZM15.5 6.24704L10.5 3.36029C10.1906 3.18166 9.8094 3.18166 9.5 3.36029L4.50004 6.24702L7.68828 8.08775C8.23855 7.42325 9.06984 6.99993 10 6.99993C10.9302 6.99993 11.7615 7.42329 12.3118 8.08783L15.5 6.24704ZM7.18759 8.95338L4 7.11302C4 7.11301 4 7.11304 4 7.11302V12.8866C4 13.2438 4.1906 13.574 4.5 13.7526L9.5 16.6393L9.5 12.9584C8.08114 12.7204 7 11.4864 7 9.99993C7 9.63183 7.06629 9.27922 7.18759 8.95338ZM13 9.99993C13 9.63187 12.9337 9.27929 12.8124 8.95348L16 7.11315V12.8866C16 13.2438 15.8094 13.574 15.5 13.7526L10.5 16.6393L10.5 12.9584C11.9189 12.7204 13 11.4864 13 9.99993ZM10 11.9999C11.1046 11.9999 12 11.1045 12 9.99993C12 8.89536 11.1046 7.99993 10 7.99993C8.89543 7.99993 8 8.89536 8 9.99993C8 11.1045 8.89543 11.9999 10 11.9999Z" }) }));
}
};
IconToken.iconName = "token";
export default IconToken;