2022-04-05 01:40:51 -05:00
|
|
|
import React from 'react';
|
|
|
|
import { Box } from '@material-ui/core';
|
|
|
|
import InfoRoundedIcon from '@material-ui/icons/InfoRounded';
|
|
|
|
import { makeStyles } from '@material-ui/styles';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
const useStyles = makeStyles((theme)=>({
|
|
|
|
root: {
|
|
|
|
color: theme.palette.text.primary,
|
2023-10-23 07:13:17 -05:00
|
|
|
margin: '24px auto 12px',
|
2022-04-20 08:29:28 -05:00
|
|
|
fontSize: '0.8rem',
|
|
|
|
display: 'flex',
|
|
|
|
alignItems: 'center',
|
2023-10-23 07:13:17 -05:00
|
|
|
justifyContent: 'center',
|
|
|
|
height: '100%',
|
2022-04-05 01:40:51 -05:00
|
|
|
},
|
|
|
|
}));
|
|
|
|
|
2023-10-23 07:13:17 -05:00
|
|
|
export default function EmptyPanelMessage({text, style}) {
|
2022-04-05 01:40:51 -05:00
|
|
|
const classes = useStyles();
|
|
|
|
return (
|
2023-10-23 07:13:17 -05:00
|
|
|
<Box className={classes.root} style={style}>
|
|
|
|
<InfoRoundedIcon style={{height: '1.2rem'}}/>
|
|
|
|
<span style={{marginLeft: '4px'}}>{text}</span>
|
2022-04-05 01:40:51 -05:00
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
EmptyPanelMessage.propTypes = {
|
|
|
|
text: PropTypes.string,
|
2023-10-23 07:13:17 -05:00
|
|
|
style: PropTypes.object,
|
2022-04-05 01:40:51 -05:00
|
|
|
};
|