import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass' import { Heading, Text } from 'components/UI' import Lightning from 'components/Icon/Lightning' import Onchain from 'components/Icon/Onchain' import PaperPlane from 'components/Icon/PaperPlane' /** * Header for opayment form. */ class PayHeader extends React.PureComponent { static propTypes = { title: PropTypes.string.isRequired, type: PropTypes.oneOf(['onchain', 'offchain']) } render() { const { title, type } = this.props return ( {type === 'offchain' && } {type === 'onchain' && } {!type && } {title}   {type === 'onchain' && 'On-Chain Payment'} {type === 'offchain' && 'Lightning Payment'} ) } } export default PayHeader