@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 1.39 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconList = (props) => {
const size = sizeMap[props?.size ?? "m"];
const label = props?.label ?? "Icon";
switch (props?.size) {
case "l":
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 24 24", width: size, height: size, "aria-label": label, role: "img", ...props, children: _jsx("path", { d: "M4 6.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2M21 5.75a.75.75 0 0 1-.75.75H7.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 .75.75M7 12a.75.75 0 0 1 .75-.75h12.5a.75.75 0 0 1 0 1.5H7.75A.75.75 0 0 1 7 12M21 18.25a.75.75 0 0 1-.75.75H7.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 .75.75M5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0M4 19.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2" }) }));
default:
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", viewBox: "0 0 20 20", width: size, height: size, "aria-label": label, role: "img", ...props, children: _jsx("path", { d: "M4 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M7 4.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5M7.5 14a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1zM7 9.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5M5 9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M4 15.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2" }) }));
}
};
IconList.iconName = "list";
export default IconList;