import React from 'react'
import PropTypes from 'prop-types'
import bondTypes from 'common-fe/constants/bond-types'
import TradeBondsPageBase from '../../index'
import content from '../../content'

const govBondContent = content[bondTypes.SOVR.value]

const TradeGovBondsPage = ({getSearchResults}) => {
    return (
        <TradeBondsPageBase
            bondType={bondTypes.SOVR.value}
            description={govBondContent.description}
            learnMoreUrl={govBondContent.learnMoreUrl}
            title={govBondContent.title}
            getSearchResults={getSearchResults}
        />
    )
}

TradeGovBondsPage.pageTitle = govBondContent.title

TradeGovBondsPage.propTypes = {
    getSearchResults: PropTypes.func,
}

export default TradeGovBondsPage
