diff --git a/src/Pages/DistributedUptimeStatus/Status/Components/Subheader/index.jsx b/src/Pages/DistributedUptimeStatus/Status/Components/Subheader/index.jsx index 78d52549c..8a327f0fa 100644 --- a/src/Pages/DistributedUptimeStatus/Status/Components/Subheader/index.jsx +++ b/src/Pages/DistributedUptimeStatus/Status/Components/Subheader/index.jsx @@ -1,32 +1,55 @@ -import { Typography } from "@mui/material"; import PropTypes from "prop-types"; +import { useTheme } from "@emotion/react"; +import { Box, Typography } from "@mui/material"; +import { useDispatch, useSelector } from "react-redux"; +import { useEffect } from "react"; +import { setGreeting } from "../Features/UI/uiSlice"; + + /** - * A heading component that renders text with a specific heading level. + * - * @param {Object} props - The properties passed to the Heading component. - * @param {('h1'|'h2'|'h3')} props.component - The heading level for the component. - * @param {Object} props.style - Custom styles to apply to the heading. - * @param {string} props.children - The content to display inside the heading. - * @returns {JSX.Element} The Typography component with specified heading properties. + * @component + * @example + * + * @param {Object} props + * @param {string} props.type - The type of monitor to be displayed in the message + * @returns {JSX.Element} The rendered component */ -function Subheader({ component, style, children }) { - return ( - - {children} - - ); -} +const Greeting = ({ type = "" }) => { + const theme = useTheme(); + const dispatch = useDispatch(); -Subheader.propTypes = { - component: PropTypes.oneOf(["h1", "h2", "h3"]).isRequired, - style: PropTypes.object, - children: PropTypes.string.isRequired, + return ( + + + + Real-time, real-device coverage + + + + Powered by millions of devices worldwide, view a system's performance by global region, country or city. + + + ); }; -export { Subheader }; + +Greeting.propTypes = { + type: PropTypes.string, +}; + +export default Greeting;