import React, {Component, PropTypes} from 'react' import {Flexbox} from 'nylas-component-kit' import {timestamp} from './formatting-utils' import SendingProgressBar from './sending-progress-bar' import SendingCancelButton from './sending-cancel-button' export default class DraftListSendStatus extends Component { static displayName = 'DraftListSendStatus'; static propTypes = { draft: PropTypes.object, }; static containerRequired = false; render() { const {draft} = this.props if (draft.uploadTaskId) { return ( ) } return {timestamp(draft.date)} } }