 # You should have received a copy of the GNU Affero General Public License
 # along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
 ###
+
 {button, div} = React.DOM
 el = React.createElement
 

    @setState showingSelector: state


  selectBeatmap: ({id}) ->
    $.publish 'beatmap:select', id: id


  toggleSelector: ->

    button
      className: menuItemClasses
      key: beatmap.id
      'data-id': beatmap.id
      onClick: @selectBeatmap
      el BeatmapDiscussions.BeatmapListItem, beatmap: beatmap, mode: 'version'


