import { Box, Button, Stack, Typography } from "@mui/material"; import { useTheme } from "@emotion/react"; import { useNavigate } from "react-router-dom"; import { useSelector } from "react-redux"; import PlaceholderLight from "../../../assets/Images/data_placeholder.svg?react"; import PlaceholderDark from "../../../assets/Images/data_placeholder_dark.svg?react"; import PropTypes from "prop-types"; const Fallback = ({ isAdmin }) => { const theme = useTheme(); const navigate = useNavigate(); const mode = useSelector((state) => state.ui.mode); return ( {mode === "light" ? : } No monitors found to display It looks like you don’t have any monitors set up yet. {isAdmin && ( )} ); }; Fallback.propTypes = { isAdmin: PropTypes.bool, }; export default Fallback;