confirm machinary tanafos and sakht period

This commit is contained in:
2023-12-24 10:24:05 +03:30
parent bd319992bb
commit 361127bf0c
7 changed files with 135 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
import {Box, Typography} from "@mui/material";
const NumberShowBox = ({showNumber, headerTitle, unitTitle}) => {
console.log({showNumber})
return (
<>
<Box sx={{border: '1px solid #ccc', p: 2, mb: 2, borderRadius: '8px'}}>
<Typography
sx={{color: "primary.main", fontWeight: 500}}>{headerTitle}</Typography>
<Typography pt={1}>
{isNaN(showNumber)
? ""
: (showNumber).toLocaleString()}{" "}
{unitTitle}
</Typography>
</Box>
</>
);
};
export default NumberShowBox