2024-01-22 11:07:38 +01:00
|
|
|
import { Box, Paper, styled, Typography } from '@mui/material';
|
|
|
|
import { PageHeader } from 'component/common/PageHeader/PageHeader';
|
2024-01-18 12:32:25 +01:00
|
|
|
import { VFC } from 'react';
|
2024-01-22 11:07:38 +01:00
|
|
|
import { UsersChart } from './UsersChart/UsersChart';
|
2024-01-22 12:15:49 +01:00
|
|
|
import { FlagsChart } from './FlagsChart/FlagsChart';
|
2024-01-22 11:07:38 +01:00
|
|
|
|
|
|
|
const StyledGrid = styled(Box)(({ theme }) => ({
|
|
|
|
display: 'grid',
|
|
|
|
gridTemplateColumns: `repeat(auto-fill, minmax(600px, 1fr))`,
|
|
|
|
gridAutoRows: '1fr',
|
|
|
|
gap: theme.spacing(2),
|
|
|
|
}));
|
2024-01-18 12:32:25 +01:00
|
|
|
|
|
|
|
export const ExecutiveDashboard: VFC = () => {
|
2024-01-22 11:07:38 +01:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Box sx={(theme) => ({ paddingBottom: theme.spacing(4) })}>
|
|
|
|
<PageHeader
|
|
|
|
titleElement={
|
|
|
|
<Typography variant='h1' component='h2'>
|
|
|
|
Dashboard
|
|
|
|
</Typography>
|
|
|
|
}
|
|
|
|
// subtitle='Succesfully synchronized: 01 Sep 2023 - 07:05:07'
|
|
|
|
/>
|
|
|
|
</Box>
|
|
|
|
{/* Dashboard */}
|
|
|
|
<StyledGrid>
|
|
|
|
<Paper>Stats</Paper>
|
|
|
|
<UsersChart />
|
2024-01-22 12:15:49 +01:00
|
|
|
<FlagsChart />
|
2024-01-22 11:07:38 +01:00
|
|
|
</StyledGrid>
|
|
|
|
</>
|
|
|
|
);
|
2024-01-18 12:32:25 +01:00
|
|
|
};
|