 
 SingleCoffeeScriptCellNotebookComponent = React.createClass
   displayName: 'SingleCoffeeScriptCellNotebookComponent'
+  mixins: [AppAwareMixin]
   render: ->
     value = @props.value
+    {imports, module_names} = @context.app
     Notebook.NotebookComponent {imports, module_names, init: (notebook) ->
       first_cell = Notebook.add_input_cell notebook
       Notebook.set_cell_value first_cell, value

    modalModel.modify (v) ->
      _.without v, modal
  , 0

exports.ModalComponent = React.createClass
  render: ->


NewNotebookComponent = React.createClass
  displayName: 'NewNotebookComponent'
  mixins: [AppAwareMixin]
  render: ->
    {imports, module_names} = @context.app
    intro_command = Settings.get 'app', 'intro_command'
    if intro_command? and intro_command != ''
      SingleCoffeeScriptCellNotebookComponent {app: @context.app, value: intro_command}
    else
      Notebook.NotebookComponent {imports, module_names, init: (nb) ->
        Notebook.focus_cell Notebook.add_input_cell nb
