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

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

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

export default ContentSection;