You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
683 B
30 lines
683 B
4 years ago
|
import { ReactNode } from 'react';
|
||
4 years ago
|
import { Box } from '@material-ui/core';
|
||
|
import { makeStyles } from '@material-ui/core/styles';
|
||
4 years ago
|
import { DIVIDER } from '../../lib/consts/DEFAULT_THEME';
|
||
4 years ago
|
|
||
|
type Props = {
|
||
|
children: ReactNode;
|
||
|
};
|
||
4 years ago
|
|
||
|
const useStyles = makeStyles(() => ({
|
||
|
innerBody: {
|
||
|
borderWidth: '1px',
|
||
|
borderRadius: '3px',
|
||
|
borderStyle: 'solid',
|
||
4 years ago
|
borderColor: DIVIDER,
|
||
4 years ago
|
marginTop: '20px',
|
||
|
marginBottom: '20px',
|
||
|
paddingBottom: '10px',
|
||
4 years ago
|
position: 'relative',
|
||
4 years ago
|
},
|
||
|
}));
|
||
|
|
||
4 years ago
|
const InnerPanel = ({ children }: Props): JSX.Element => {
|
||
4 years ago
|
const classes = useStyles();
|
||
|
|
||
4 years ago
|
return <Box className={classes.innerBody}>{children}</Box>;
|
||
4 years ago
|
};
|
||
|
|
||
|
export default InnerPanel;
|