refactor out components
This commit is contained in:
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,
|
||||
};
|
||||
Reference in new issue
Block a user