import { prettifySeconds } from "./prettify-seconds" ; import { secondsUntilBlock } from "./seconds-until-block" ; export const prettyVestingPeriod = ( currentBlock , vestingBlock ) => { if ( vestingBlock === 0 ) { return "" ; } const seconds = secondsUntilBlock ( currentBlock , vestingBlock ) ; if ( seconds < 0 ) { return "Fully Vested" ; } return prettifySeconds ( seconds ) ; } ;