blob: 6b4cbca4dd686cbc3fa2d414ec4e4953559f96d8 (
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;
|