import { React, PropTypes, Actions, TaskFactory } from 'mailspring-exports'; import { RetinaImg } from 'mailspring-component-kit'; export default class StarButton extends React.Component { static displayName = 'StarButton'; static containerRequired = false; static propTypes = { thread: PropTypes.object, }; _onStarToggle = e => { Actions.queueTask( TaskFactory.taskForInvertingStarred({ source: 'Toolbar Button: Message List', threads: [this.props.thread], }) ); e.stopPropagation(); }; render() { const selected = this.props.thread && this.props.thread.starred; return ( ); } }