 { Meteor }          = require 'meteor/meteor'
 React               = require 'react'
 { Link }            = require 'react-router'
+{ createContainer } = require 'meteor/react-meteor-data'
 
 G     = require 'grommet'
 console.log 'grommet', G
 
-module.exports = App = React.createClass
+App = React.createClass
   displayName: 'App'
 
   getInitialState: ->

        </G.Sidebar>
        {@props.children}
      </G.Split>
    </G.App>

  switchSideBar: ->
    @setState priority: (if @state.priority is 'right' then 'left' else 'right')

  onErrorToastClose: -> @props.route.App.emit 'clear error message'
  onInfoToastClose: -> @props.route.App.emit 'clear info message'

  render: ->
    console.log 'wie', @props.route.App.state.globalErrorMessage()
    <G.App centered=false>
      <G.Split flex='right' priority={@state.priority}>
        <G.Sidebar colorIndex='neutral-1'>
