import React, {Component, PropTypes} from 'react'
import {Utils} from 'nylas-exports'
import {Flexbox} from 'nylas-component-kit'
import SendingProgressBar from './sending-progress-bar'
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 {Utils.shortTimeString(draft.date)}
}
}