2019-06-28 09:27:55 +02:00
// @flow
type Props = {
uri : ? string ,
isResolvingUri : boolean ,
amountNeededForTakeover : number ,
} ;
function BidHelpText ( props : Props ) {
const { uri , isResolvingUri , amountNeededForTakeover } = props ;
let bidHelpText ;
if ( uri ) {
if ( isResolvingUri ) {
bidHelpText = _ _ ( 'Checking the winning claim amount...' ) ;
2019-07-17 05:23:45 +02:00
} else if ( amountNeededForTakeover === 0 ) {
bidHelpText = _ _ ( 'You currently have the highest bid for this name.' ) ;
2019-06-28 09:27:55 +02:00
} else if ( ! amountNeededForTakeover ) {
bidHelpText = _ _ ( 'Any amount will give you the winning bid.' ) ;
} else {
2019-09-04 23:43:37 +02:00
bidHelpText = _ _ (
'If you bid more than %amount% LBC, when someone navigates to %uri%, it will load your published content. However, you can get a longer version of this URL for any bid.' ,
{
amount : amountNeededForTakeover ,
uri : uri ,
}
) ;
2019-06-28 09:27:55 +02:00
}
} else {
bidHelpText = _ _ ( 'This LBC remains yours and the deposit can be undone at any time.' ) ;
}
return bidHelpText ;
}
export default BidHelpText ;