summaryrefslogtreecommitdiff
path: root/frontend/src/components/home/ContentSection.js
blob: ba2e4ec31cb7b2761cafe01c2a04416b6f0a5f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import classNames from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import './ContentSection.css'

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

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

export default ContentSection