refactor out components

This commit is contained in:
Alex Holliday committed 2025-02-04 15:26:24 -08:00
1 parent e4de0874b1
commit befdf73706
4 files changed
+178 -111

No files matched your search

@@ -0,0 +1,31 @@
// Components
import { Stack, Typography } from "@mui/material";
// Utils
import { useTheme } from "@mui/material/styles";
import PropTypes from "prop-types";
const StatusBar = ({ status }) => {
const theme = useTheme();
return (
<Stack
direction="row"
alignItems="center"
justifyContent="center"
gap={theme.spacing(2)}
height={theme.spacing(30)}
width={"100%"}
backgroundColor={status?.color}
borderRadius={theme.spacing(2)}
>
{status?.icon}
{/* CAIO_REVIEW */}
<Typography variant="h2DarkBg">{status?.msg}</Typography>
</Stack>
);
};
export default StatusBar;
StatusBar.propTypes = {
status: PropTypes.object.isRequired,
};