Mailspring/internal_packages/open-tracking/lib/open-tracking-message-status.jsx
2016-02-23 18:58:07 -08:00

13 lines
359 B
JavaScript

import {React} from 'nylas-exports'
import OpenTrackingIcon from './open-tracking-icon'
export default class OpenTrackingMessageStatus extends OpenTrackingIcon {
static displayName = "OpenTrackingMessageStatus";
render() {
const txt = this.state.opened ? "Read" : "Unread"
return (
<span>{this.renderImage()}&nbsp;{txt}</span>
)
}
}