// in src/Menu.js import * as React from "react"; import { useSelector } from "react-redux"; import { useMediaQuery } from "@mui/material"; import { MenuItemLink, getResources } from "react-admin"; import DefaultIcon from "@mui/icons-material/ViewList"; import LabelIcon from "@mui/icons-material/Label"; const Menu = ({ onMenuClick, logout }) => { const isXSmall = useMediaQuery(theme => theme.breakpoints.down("xs")); const open = useSelector(state => state.admin.ui.sidebarOpen); const resources = useSelector(getResources); return (