| 1 | import PropTypes from 'prop-types'; |
| 2 | const React = window.React; |
| 3 | |
| 4 | const propTypes = { |
| 5 | title: PropTypes.node.isRequired, |
| 6 | description: PropTypes.node, |
| 7 | }; |
| 8 | |
| 9 | class FixtureSet extends React.Component { |
| 10 | render() { |
| 11 | const {title, description, children} = this.props; |
| 12 | |
| 13 | return ( |
| 14 | <div className="container"> |
| 15 | <h1>{title}</h1> |
| 16 | {description && <p>{description}</p>} |
| 17 | |
| 18 | {children} |
| 19 | </div> |
| 20 | ); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | FixtureSet.propTypes = propTypes; |
| 25 | |
| 26 | export default FixtureSet; |