import React from 'react'; import { IBaseDomainRequest } from 'libs/ens'; import ENSTime from './components/ENSTime'; import moment from 'moment'; import { NewTabLink } from 'components/ui'; import { ensV3Url } from 'utils/formatters'; import translate from 'translations'; const getDeadlines = (registrationDate: string) => { // Get the time to reveal bids, and the time when the action closes const time = moment(+registrationDate * 1000); const auctionCloseTime = +time; const revealBidTime = +time.subtract(2, 'days'); return { auctionCloseTime, revealBidTime }; }; export const NameAuction: React.SFC = props => { const { registrationDate, name } = props; const { auctionCloseTime, revealBidTime } = getDeadlines(registrationDate); return (

{translate('ENS_DOMAIN_AUCTION', { $name: name + '.eth' })}

{translate('NAME_AUCTION_PROMPT_BID')} {translate('NAME_AUCTION_PROMPT_BID_2')}

); };