import React from 'react' import PropTypes from 'prop-types' export default function FeeCard ({ onFeeRowClick = null, feeRowText, feeRowLinkText = '', primaryFee, secondaryFee = '', onSecondRowClick = null, secondRowText = '', secondRowLinkText = '', hideSecondRow = false, }) { return (
onFeeRowClick && onFeeRowClick()}>
{feeRowText}
{onFeeRowClick && (
{feeRowLinkText}
)}
{primaryFee}
{secondaryFee && (
{secondaryFee}
)}
{!hideSecondRow && secondRowText && (
{secondRowText}
{secondRowLinkText && (
onSecondRowClick && onSecondRowClick()}> {secondRowLinkText}
)}
)}
) } FeeCard.propTypes = { onFeeRowClick: PropTypes.func, feeRowText: PropTypes.string.isRequired, feeRowLinkText: PropTypes.string, primaryFee: PropTypes.string.isRequired, secondaryFee: PropTypes.string, onSecondRowClick: PropTypes.func, secondRowText: PropTypes.string, secondRowLinkText: PropTypes.string, hideSecondRow: PropTypes.bool, }