@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.96 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconStore = (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: "M6.35407 3C5.53626 3 4.80084 3.4979 4.49711 4.25722L3.14305 7.64238C3.04855 7.87862 3 8.13073 3 8.38516V11.5C3 12.2403 3.4022 12.8866 4 13.2324V20.25C4 20.6642 4.33579 21 4.75 21C5.16421 21 5.5 20.6642 5.5 20.25V13.5H9.5V19C9.5 20.1046 10.3954 21 11.5 21H18C19.1046 21 20 20.1046 20 19V13.2324C20.5978 12.8866 21 12.2403 21 11.5V8.38516C21 8.13073 20.9515 7.87862 20.857 7.64238L19.5029 4.25722C19.1992 3.4979 18.4637 3 17.6459 3H6.35407ZM17.6459 4.5H6.35407C6.14961 4.5 5.96576 4.62448 5.88983 4.81431L4.53576 8.19947C4.51214 8.25853 4.5 8.32156 4.5 8.38516V11.5C4.5 11.7761 4.72386 12 5 12H7V8.75C7 8.33579 7.33579 8 7.75 8C8.16421 8 8.5 8.33579 8.5 8.75V12H11.25V8.75C11.25 8.33579 11.5858 8 12 8C12.4142 8 12.75 8.33579 12.75 8.75V12H15.5V8.75C15.5 8.33579 15.8358 8 16.25 8C16.6642 8 17 8.33579 17 8.75V12H19C19.2761 12 19.5 11.7761 19.5 11.5V8.38516C19.5 8.32156 19.4879 8.25853 19.4642 8.19947L18.1102 4.8143C18.0342 4.62448 17.8504 4.5 17.6459 4.5ZM11 19V13.5H18.5V19C18.5 19.2761 18.2761 19.5 18 19.5H11.5C11.2239 19.5 11 19.2761 11 19Z" }) }));
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: "M13.7637 3C14.5212 3 15.2139 3.42796 15.5527 4.10547L16.7891 6.57812C16.9277 6.85559 16.9999 7.1615 17 7.47168V9C17 9.73981 16.5972 10.3837 16 10.7295V15C16 16.1046 15.1046 17 14 17H10C8.96435 17 8.113 16.2128 8.01074 15.2041L8 15V11H5V16.5C5 16.7761 4.77614 17 4.5 17C4.22386 17 4 16.7761 4 16.5V10.7295C3.40282 10.3837 3 9.73981 3 9V7.47168C3.00005 7.23903 3.04033 7.00866 3.11914 6.79102L3.21094 6.57812L4.44727 4.10547C4.76487 3.47035 5.3933 3.05442 6.09473 3.00488L6.23633 3H13.7637ZM9 15C9 15.5523 9.44772 16 10 16H14C14.5523 16 15 15.5523 15 15V11H9V15ZM6.23633 4C5.85759 4 5.51121 4.21401 5.3418 4.55273L4.10547 7.02539C4.03624 7.164 4.00007 7.31675 4 7.47168V9C4 9.55228 4.44772 10 5 10H6V7.5C6 7.22386 6.22386 7 6.5 7C6.77614 7 7 7.22386 7 7.5V10H9.5V7.5C9.5 7.22386 9.72386 7 10 7C10.2761 7 10.5 7.22386 10.5 7.5V10H13V7.5C13 7.22386 13.2239 7 13.5 7C13.7761 7 14 7.22386 14 7.5V10H15C15.5523 10 16 9.55228 16 9V7.47168C15.9999 7.31675 15.9638 7.164 15.8945 7.02539L14.6582 4.55273C14.4888 4.21401 14.1424 4 13.7637 4H6.23633Z" }) }));
}
};
IconStore.iconName = "store";
export default IconStore;