import { Stack, Button } from "@mui/material"; import { useNavigate } from "react-router-dom"; import PropTypes from "prop-types"; import { useTranslation } from "react-i18next"; import { useTheme } from "@emotion/react"; import MonitorActions from "../MonitorActions"; const CreateMonitorHeader = ({ isAdmin, label, isLoading = true, path, bulkPath }) => { const navigate = useNavigate(); const { t } = useTranslation(); const theme = useTheme(); // Use the provided label or fall back to the translated default if (!isAdmin) return null; return ( {/* {bulkPath && } */} ); }; export default CreateMonitorHeader; CreateMonitorHeader.propTypes = { isAdmin: PropTypes.bool.isRequired, isLoading: PropTypes.bool, path: PropTypes.string.isRequired, label: PropTypes.string, bulkPath: PropTypes.string, };