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

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

ContentSection.propTypes = {
    name: PropTypes.string.isRequired,
}

export default ContentSection