aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-breakdown/transaction-breakdown-row/transaction-breakdown-row.component.js
blob: c11ff8efa7ebbb876b377db64e5bb6494802bce7 (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
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'

export default class TransactionBreakdownRow extends PureComponent {
  static propTypes = {
    title: PropTypes.string,
    children: PropTypes.node,
    className: PropTypes.string,
  }

  render () {
    const { title, children, className } = this.props

    return (
      <div className={classnames('transaction-breakdown-row', className)}>
        <div className="transaction-breakdown-row__title">
          { title }
        </div>
        <div className="transaction-breakdown-row__value">
          { children }
        </div>
      </div>
    )
  }
}