padraigfl/packard-belle

View on GitHub
src/components/Window/DetailsSection.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import './styles/DetailsSection.scss';

const DetailsSection = props => (
  <section className="DetailsSection window__section">
    <div className="title">{ props.title }</div>
    { props.children }
  </section>
);

DetailsSection.propTypes = {
  title: PropTypes.node,
  children: PropTypes.node,
};

export default DetailsSection;