blob: 9d4832d928acc91fad9e67515deb2d7637c841cc (
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.sass'
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
|