import React from 'react';
|
import { Box, Button, SvgIcon, Typography } from '@mui/material';
|
import { HotTub } from '@mui/icons-material';
|
import CorporateFareIcon from '@mui/icons-material/CorporateFare';
|
import { useTranslate } from 'react-admin';
|
|
const LocEmptyData = ({ onInit }) => {
|
const translate = useTranslate();
|
|
return (
|
<Box
|
display="flex"
|
flexDirection="column"
|
alignItems="center"
|
justifyContent="flex-start"
|
height="100vh"
|
pt={10}
|
>
|
<SvgIcon component={HotTub} sx={{ fontSize: '18em', mb: 2, opacity: .5 }} />
|
<Typography variant="h1" gutterBottom sx={{
|
fontWeight: 'bold',
|
fontSize: '2em',
|
opacity: .5,
|
mt: 2
|
}}>
|
{translate('create.empty.title')}
|
</Typography>
|
<Typography variant="subtitle1" gutterBottom sx={{
|
fontSize: '1em',
|
opacity: .5,
|
mt: 2
|
}}>
|
{translate('create.empty.desc')}
|
</Typography>
|
<Button
|
variant="contained"
|
color="primary"
|
startIcon={<CorporateFareIcon />}
|
onClick={onInit}
|
sx={{ fontSize: '1em', mt: 2 }}
|
>
|
{translate('page.loc.init')}
|
</Button>
|
</Box>
|
);
|
};
|
|
export default LocEmptyData;
|