redbadger/website-honestly

View on GitHub
site/components/case-study-section/index.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
// @flow
import * as React from 'react';

import styles from './style.css';

type CaseStudySectionProps = {
  title?: string,
  children?: React.Node,
};

const CaseStudySection = ({ title, children }: CaseStudySectionProps) => (
  <div className={styles.content}>
    <div className={styles.content__wrapper}>
      {title && <h3>{title}</h3>}
      {children}
    </div>
  </div>
);

export default CaseStudySection;