@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.51 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconCart = (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: "M1 4.75C1 4.33579 1.33579 4 1.75 4H3.07595C3.78892 4 4.43061 4.43253 4.69811 5.09341L5.06506 6H20.25C20.4968 6 20.7279 6.12146 20.8678 6.32479C21.0078 6.52812 21.0387 6.78729 20.9505 7.01785L18.1921 14.2321C17.7851 15.2968 16.7634 16 15.6235 16H9.3481C8.22772 16 7.21935 15.3203 6.79899 14.2818L3.30769 5.6562C3.26947 5.56179 3.1778 5.5 3.07595 5.5H1.75C1.33579 5.5 1 5.16421 1 4.75ZM5.6722 7.5L8.18941 13.719C8.38049 14.1911 8.83883 14.5 9.3481 14.5H15.6235C16.1416 14.5 16.606 14.1804 16.7911 13.6964L19.1603 7.5H5.6722Z" }), _jsx("path", { d: "M8.5 17C9.32843 17 10 17.6716 10 18.5C10 19.3284 9.32843 20 8.5 20C7.67157 20 7 19.3284 7 18.5C7 17.6716 7.67157 17 8.5 17Z" }), _jsx("path", { d: "M18 18.5C18 17.6716 17.3284 17 16.5 17C15.6716 17 15 17.6716 15 18.5C15 19.3284 15.6716 20 16.5 20C17.3284 20 18 19.3284 18 18.5Z" })] }));
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: "M1 3.5C1 3.22386 1.22386 3 1.5 3H2.38395C3.26717 3 4.04582 3.57934 4.29961 4.4253L4.47202 5H16.9C17.0581 5 17.2068 5.07473 17.3011 5.20153C17.3955 5.32834 17.4243 5.49229 17.3789 5.64367L15.2996 12.5747C15.0458 13.4207 14.2672 14 13.384 14H7.61605C6.73283 14 5.95418 13.4207 5.70039 12.5747L3.34178 4.71265C3.21489 4.28967 2.82556 4 2.38395 4H1.5C1.22386 4 1 3.77614 1 3.5ZM4.77202 6L6.65822 12.2873C6.78511 12.7103 7.17444 13 7.61605 13H13.384C13.8256 13 14.2149 12.7103 14.3418 12.2873L16.228 6H4.77202Z" }), _jsx("path", { d: "M8 16C8 16.5523 7.55228 17 7 17C6.44772 17 6 16.5523 6 16C6 15.4477 6.44772 15 7 15C7.55228 15 8 15.4477 8 16Z" }), _jsx("path", { d: "M14 17C14.5523 17 15 16.5523 15 16C15 15.4477 14.5523 15 14 15C13.4477 15 13 15.4477 13 16C13 16.5523 13.4477 17 14 17Z" })] }));
}
};
IconCart.iconName = "cart";
export default IconCart;