aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/page-container/page-container-header.component.js
blob: 5c9d63221d6f83fc07395eaf53ce4dfb2df90279 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React, { Component } from 'react'
import PropTypes from 'prop-types'

export default class PageContainerHeader extends Component {

  static propTypes = {
    title: PropTypes.string,
    subtitle: PropTypes.string,
    onClose: PropTypes.func,
  };

  render () {
    const { title, subtitle, onClose } = this.props

    return (
      <div className="page-container__header">

        <div className="page-container__title">
          {title}
        </div>

        <div className="page-container__subtitle">
          {subtitle}
        </div>

        <div
          className="page-container__header-close"
          onClick={() => onClose()}
        />

      </div>
    )
  }

}