@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.74 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconLearn = (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: "M2.32575 10.4937L6.00004 12.8319L6 16.6422C6 17.3448 6.3686 17.9958 6.97102 18.3572L10.971 20.7572C11.6044 21.1373 12.3956 21.1373 13.029 20.7572L17.029 18.3573C17.6314 17.9959 18 17.3448 18 16.6423V12.8318L19.5 11.8773V16.25C19.5 16.6642 19.8358 17 20.25 17C20.6642 17 21 16.6642 21 16.25V10.9228L21.6742 10.4937C22.2917 10.1007 22.2917 9.19933 21.6742 8.80637L13.0738 3.33331C12.4186 2.9164 11.5814 2.9164 10.9262 3.33331L2.32575 8.80637C1.70825 9.19933 1.70825 10.1007 2.32575 10.4937ZM3.79394 9.65003L11.7316 14.7012C11.8953 14.8055 12.1047 14.8055 12.2684 14.7012L20.2061 9.65003L12.2684 4.5988C12.1047 4.49457 11.8953 4.49457 11.7316 4.5988L3.79394 9.65003ZM7.5 16.6422L7.50003 13.7864L10.9262 15.9667C11.5814 16.3836 12.4186 16.3836 13.0737 15.9667L16.5 13.7864V16.6423C16.5 16.8179 16.4079 16.9807 16.2573 17.0711L12.2573 19.471C12.0989 19.566 11.9011 19.566 11.7428 19.471L7.74276 17.071C7.59215 16.9806 7.5 16.8179 7.5 16.6422Z" }) }));
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: "M9.25 3.20096C9.7141 2.93301 10.2859 2.93301 10.75 3.20096L17.25 6.95374C18.25 7.53109 18.25 8.97446 17.25 9.55181L17 9.69616V14.5C17 14.7762 16.7761 15 16.5 15C16.2239 15 16 14.7762 16 14.5V10.2735L15 10.8509V13.4793C15 14.0152 14.7141 14.5104 14.25 14.7783L10.75 16.799C10.2859 17.067 9.7141 17.067 9.25 16.799L5.75 14.7783C5.2859 14.5104 5 14.0152 5 13.4793V10.8509L2.75 9.55181C1.75 8.97446 1.75 7.53109 2.75 6.95374L9.25 3.20096ZM9.75 4.06699L3.25 7.81977C2.91667 8.01222 2.91667 8.49334 3.25 8.68579L9.75 12.4386C9.9047 12.5279 10.0953 12.5279 10.25 12.4386L16.75 8.68579C17.0833 8.49334 17.0833 8.01222 16.75 7.81977L10.25 4.06699C10.0953 3.97767 9.9047 3.97767 9.75 4.06699ZM10.75 13.3046L14 11.4282V13.4793C14 13.6579 13.9047 13.823 13.75 13.9123L10.25 15.933C10.0953 16.0223 9.9047 16.0223 9.75 15.933L6.25 13.9123C6.0953 13.823 6 13.6579 6 13.4793V11.4282L9.25 13.3046C9.7141 13.5725 10.2859 13.5725 10.75 13.3046Z" }) }));
}
};
IconLearn.iconName = "learn";
export default IconLearn;