blob: d5b9340e2314d27e6b25275f102429e0fae48357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import React from 'react';
import {
Typography,
Divider,
makeStyles
} from "@material-ui/core";
const useStyles = makeStyles(theme => ({
content: {
padding: theme.spacing(2),
}
}));
const ContentSection = ({ sectionName, children }) => {
const classes = useStyles();
return (
<>
<Typography variant="h4">{sectionName}</Typography>
<Divider variant="middle"/>
<div className={classes.content}>
{children}
</div>
</>
);
};
export default ContentSection;
|