 NoFiles = rclass
     propTypes :
         actions     : rtypes.object.isRequired
+        create_folder : rtypes.func.isRequired
+        create_file   : rtypes.func.isRequired
         public_view : rtypes.bool
         file_search : rtypes.string
         current_path: rtypes.string
 
     displayName : 'ProjectFiles-NoFiles'
-
-    create_folder : () ->
-        @props.actions.create_folder(@props.file_search, @props.current_path, (a) => setState(error: a))
-        @props.actions.setState(file_search : '', page_number: 0)
-
-    create_file : (ext) ->
-        if not ext?
-            ext = @extension_defaulter()
-        @props.actions.create_file
-            name         : @props.file_search
-            ext          : ext
-            current_path : @props.current_path
-            on_download  : ((a) => @setState(download: a))
-            # TODO: Render error in useful location
-            on_error     : ((a) => @setState(error: a))
-        if not @state?.error?
-            @props.actions.setState(file_search : '', page_number: 0)
 
     # Determines whether or not an extension is given
     ext_defaulter : ->

        page_size     : rtypes.number
        public_view   : rtypes.bool
        actions       : rtypes.object.isRequired

    render_row : (name, size, time, mask, isdir, display_name, public_data, index) ->
        checked = @props.checked_files.has(misc.path_to_file(@props.current_path, name))

                checked_files = {@props.checked_files}
                current_path  = {@props.current_path}
                public_view   = {public_view}
                actions       = {@props.actions}
                create_file   = {@create_file}
                create_folder = {@create_folder} />
        else
            <div style={fontSize:'40px', textAlign:'center', color:'#999999'} >
                <Loading />
