import React from 'react'
import PropTypes from 'prop-types'

import BEMModule from 'utils/bem'
import styles from './styles.scss'
const bem = new BEMModule(styles)

const BondPrice = ({
    parAmountDisplay,
    percentOfParDisplay,
    currency,
    className,
}) => {
    const rootClassNames = bem.classNames(
        'c-order-security-info-bond-price',
        className
    )

    return (
        <h1 className={rootClassNames}>
            {percentOfParDisplay}
            <span>
                % of {parAmountDisplay} {currency}
            </span>
        </h1>
    )
}

BondPrice.propTypes = {
    className: PropTypes.string,
    currency: PropTypes.string,
    parAmountDisplay: PropTypes.string,
    percentOfParDisplay: PropTypes.string,
}

export default BondPrice
