text: export function formatDate (timestamp) {
      const d = new Date(timestamp)
      const time = d.toLocaleTimeString('en-US')
      return time.substr(0, 5) + time.slice(-2) + ' | ' + d.toLocaleDateString()
    }
    
    export function formatQuestions ( poll, author ) {
      const { id, timestamp ,optionOne,optionTwo} = poll
      const { name, avatarURL } = author
    
      return {
        name,
        id,
        timestamp,
        optionOne,
        optionTwo,
        avatar: avatarURL,
       
      }
    }
  
   