summaryrefslogtreecommitdiff
path: root/src/components/ContentHeader.js
blob: b34d5dffb7fb9406b265112de2e228ca9cb43002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import PropTypes from 'prop-types';

import s0 from './ContentHeader.module.css';

function ContentHeader({ title }) {
  return (
    <div className={s0.root}>
      <h1 className={s0.h1}>{title}</h1>
    </div>
  );
}

ContentHeader.propTypes = {
  title: PropTypes.string.isRequired
};

export default React.memo(ContentHeader);