@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 2.34 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconHome = (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: "M10.5 19C10.5 20.1046 9.60457 21 8.5 21H5C3.89543 21 3 20.1046 3 19V8.9782C3 8.36102 3.28495 7.77841 3.77212 7.39949L10.7721 1.95505C11.4943 1.39332 12.5057 1.39332 13.2279 1.95505L20.2279 7.39949C20.7151 7.77841 21 8.36102 21 8.9782V19C21 20.1046 20.1046 21 19 21H15.5C14.3954 21 13.5 20.1046 13.5 19V13H10.5V19ZM9 13C9 12.1716 9.67157 11.5 10.5 11.5H13.5C14.3284 11.5 15 12.1716 15 13V19C15 19.2762 15.2239 19.5 15.5 19.5H19C19.2761 19.5 19.5 19.2762 19.5 19V8.9782C19.5 8.8239 19.4288 8.67825 19.307 8.58352L12.307 3.13908C12.1264 2.99864 11.8736 2.99864 11.693 3.13908L4.69303 8.58352C4.57124 8.67825 4.5 8.8239 4.5 8.9782V19C4.5 19.2762 4.72386 19.5 5 19.5H8.5C8.77614 19.5 9 19.2762 9 19V13Z" }) }));
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: "M10.6459 3.20152C10.2731 2.88603 9.7269 2.88603 9.35406 3.20152L4.35406 7.43229C4.12951 7.62229 4 7.90152 4 8.19567V15C4 15.5523 4.44772 16 5 16H7C7.55228 16 8 15.5523 8 15V10.5C8 9.67155 8.67157 8.99998 9.5 8.99998H10.5C11.3284 8.99998 12 9.67155 12 10.5V15C12 15.5523 12.4477 16 13 16H15C15.5523 16 16 15.5523 16 15V8.19567C16 7.90152 15.8705 7.62229 15.6459 7.43229L10.6459 3.20152ZM8.70812 2.43813C9.45381 1.80716 10.5462 1.80716 11.2919 2.43813L16.2919 6.6689C16.741 7.04891 17 7.60737 17 8.19567V15C17 16.1045 16.1046 17 15 17H13C11.8954 17 11 16.1045 11 15V10.5C11 10.2238 10.7761 9.99998 10.5 9.99998H9.5C9.22386 9.99998 9 10.2238 9 10.5V15C9 16.1045 8.10457 17 7 17H5C3.89543 17 3 16.1045 3 15V8.19567C3 7.60737 3.25901 7.04891 3.70812 6.6689L8.70812 2.43813Z" }) }));
}
};
IconHome.iconName = "home";
export default IconHome;