import React from 'react';
import { Actions, ReactDOM } from 'nylas-exports';
import { RetinaImg } from 'nylas-component-kit';
import ActivityList from './activity-list';
import ActivityListStore from './activity-list-store';
class ActivityListButton extends React.Component {
static displayName = 'ActivityListButton';
constructor() {
super();
this.state = this._getStateFromStores();
}
componentDidMount() {
this._unsub = ActivityListStore.listen(this._onDataChanged);
}
componentWillUnmount() {
this._unsub();
}
onClick = () => {
const buttonRect = ReactDOM.findDOMNode(this).getBoundingClientRect();
Actions.openPopover(