import {React, UpdateChannelStore} from 'nylas-exports'; import {Notification} from 'nylas-component-kit'; export default class UnstableChannelNotification extends React.Component { static displayName = 'UnstableChannelNotification'; constructor() { super(); this.state = { isUnstableChannel: UpdateChannelStore.currentIsUnstable(), } } componentDidMount() { this._unsub = UpdateChannelStore.listen(() => { this.setState({ isUnstableChannel: UpdateChannelStore.currentIsUnstable(), }); }); } componentWillUnmount() { if (this._unsub) { this._unsub(); } } _onReportIssue = () => { NylasEnv.windowEventHandler.openLink({href: 'mailto:support@nylas.com'}) } render() { if (!this.state.isUnstableChannel) { return } return ( ) } }