summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/home/ContentSection.js
blob: abaa565c79bace0732ffe601521bca0417068834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import PropTypes from 'prop-types'
import React from 'react'
import classNames from 'classnames'
import { Container } from 'reactstrap'
import { contentSection } from './ContentSection.module.scss'

const ContentSection = ({ name, title, children, className }) => (
    <section id={name} className={classNames(className, contentSection)}>
        <Container>
            <h1>{title}</h1>
            {children}
        </Container>
    </section>
)

ContentSection.propTypes = {
    name: PropTypes.string.isRequired,
    title: PropTypes.string.isRequired,
    children: PropTypes.node,
    className: PropTypes.string,
}

export default ContentSection