@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.37 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconStar = (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: "M8.68416 7.46308L3.27477 8.24911C2.45455 8.36829 2.12704 9.37627 2.72056 9.9548L6.63483 13.7703L5.7108 19.1578C5.57069 19.9747 6.42812 20.5977 7.16175 20.212L12.0001 17.6683L16.8384 20.212C17.572 20.5977 18.4294 19.9747 18.2893 19.1578L17.3653 13.7703L21.2795 9.9548C21.8731 9.37627 21.5455 8.36829 20.7253 8.24911L15.3159 7.46308L12.8968 2.56134C12.53 1.81809 11.4701 1.8181 11.1033 2.56134L8.68416 7.46308ZM14.3198 8.83409L12.0001 4.13368L9.68026 8.83409L4.49305 9.58784L8.24655 13.2466L7.36047 18.4128L12.0001 15.9737L16.6396 18.4128L15.7535 13.2466L19.507 9.58784L14.3198 8.83409Z" }) }));
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.21494 2.37456C9.63928 1.83122 10.5027 1.86987 10.8644 2.49077L12.9073 5.99858L16.8751 6.85796C17.5774 7.01003 17.8818 7.81969 17.4962 8.39116L17.4093 8.50151L14.7042 11.5289L15.1134 15.5679C15.1903 16.3302 14.4162 16.8935 13.7149 16.5845L10.0001 14.9468L6.28525 16.5845C5.58416 16.8931 4.80999 16.3301 4.88682 15.5679L5.296 11.5289L2.59092 8.50151C2.08037 7.93009 2.3763 7.02036 3.1251 6.85796L7.09287 5.99858L9.13584 2.49077L9.21494 2.37456ZM7.95713 6.50249C7.83347 6.71448 7.63624 6.8728 7.40537 6.94878L7.30479 6.97612L3.33604 7.8355L6.04111 10.8628L6.10752 10.9439C6.24965 11.1411 6.31575 11.3852 6.29111 11.6294L5.88193 15.6685L9.59678 14.0318L9.69443 13.9947C9.92613 13.9203 10.1785 13.9327 10.4034 14.0318L14.1183 15.6685L13.7091 11.6294C13.6809 11.3504 13.7723 11.0721 13.9591 10.8628L16.6642 7.8355L12.6954 6.97612C12.4214 6.91661 12.1843 6.74473 12.0431 6.50249L10.0001 2.9937L7.95713 6.50249Z" }) }));
}
};
IconStar.iconName = "star";
export default IconStar;