context = window

@SessionShareBtn = React.createClass({

  mixins: [Reflux.listenTo(@AppStore,"onAppInit")]

  onShare: (e) ->
    e.preventDefault()

    @app.layout.showDialog('share-dialog')

  render: () ->
    `<a className="session-share button-grey left" onClick={this.onShare}>
      <img src="/assets/content/icon_share.png" align="texttop" height="14" width="14"/>
      SHARE
    </a>`

  onAppInit: (app) ->
    @app = app
})