From aee3e6a604c529f76e6bb63a2c99024f426162ec Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 18 Dec 2024 13:44:48 -0800 Subject: [PATCH] refactor StatBox to reusable component --- Client/src/Components/StatBox/index.jsx | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Client/src/Components/StatBox/index.jsx diff --git a/Client/src/Components/StatBox/index.jsx b/Client/src/Components/StatBox/index.jsx new file mode 100644 index 000000000..84827c826 --- /dev/null +++ b/Client/src/Components/StatBox/index.jsx @@ -0,0 +1,44 @@ +import { Box, Typography } from "@mui/material"; +import { useTheme } from "@mui/material/styles"; + +const StatBox = ({ heading, stat, subHeading, sx }) => { + const theme = useTheme(); + console.log(sx); + return ( + + {heading} + {subHeading} + + ); +}; + +export default StatBox;