import React from 'react' import { Icon, Popup } from 'UI' import { connectPlayer, toggleEvents } from 'Player'; import cn from 'classnames' import stl from './EventsToggleButton.css' function EventsToggleButton({ showEvents, toggleEvents }) { return ( } content={ showEvents ? 'Hide Events' : 'Show Events' } size="tiny" inverted position="bottom right" /> ) } export default connectPlayer(state => ({ showEvents: !state.showEvents }), { toggleEvents })(EventsToggleButton)