Refactored status dot to its own component

This commit is contained in:
Daniel Cojocea committed 2024-08-22 12:23:52 -04:00
1 parent 35ae180865
commit 50c23505c3
5 files changed
+77 -122

No files matched your search

@@ -0,0 +1,33 @@
import { Box, Stack } from "@mui/material";
const PulseDot = ({ color }) => {
return (
<Stack
width="26px"
height="24px"
alignItems="center"
justifyContent="center"
>
<Box
width="14px"
height="14px"
sx={{
position: "relative",
backgroundColor: color,
borderRadius: "50%",
"&::before": {
content: `""`,
position: "absolute",
width: "100%",
height: "100%",
backgroundColor: "inherit",
borderRadius: "50%",
animation: "ripple 1.8s ease-out infinite",
},
}}
/>
</Stack>
);
};
export default PulseDot;