// Components import { Stack, Typography, Button, ButtonGroup } from "@mui/material"; import Select from "../../../../Components/Inputs/Select"; import PropTypes from "prop-types"; //Utils import { useTheme } from "@emotion/react"; import SkeletonLayout from "./skeleton"; import { useTranslation } from "react-i18next"; const OptionsHeader = ({ shouldRender, selectedMonitor = 0, setSelectedMonitor, monitors, filter = "all", setFilter, dateRange = "hour", setDateRange, }) => { const theme = useTheme(); const { t } = useTranslation(); const monitorNames = typeof monitors !== "undefined" ? Object.values(monitors) : []; // The stacks below which are three in number have the same style so const stackStyles = { direction: "row", alignItems: "center", gap: theme.spacing(6), }; if (!shouldRender) return ; return ( {t("incidentsOptionsHeader")}