From ae8b491480617e9f2fd8cc8a74f81200a9a42424 Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Thu, 9 Jan 2020 10:53:26 +0300 Subject: Implement ContentSection component --- src/components/ContentSection/ContentSection.js | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/components/ContentSection/ContentSection.js (limited to 'src/components/ContentSection') diff --git a/src/components/ContentSection/ContentSection.js b/src/components/ContentSection/ContentSection.js new file mode 100644 index 0000000..d5b9340 --- /dev/null +++ b/src/components/ContentSection/ContentSection.js @@ -0,0 +1,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 ( + <> + {sectionName} + +
+ {children} +
+ + ); + +}; + + +export default ContentSection; -- cgit v1.2.3