 
     getDefaultProps : ->
         page_number : 0
+        file_search : ''
 
     previous_page : ->
         if @props.page_number > 0


    # Go to new file tab if no file is specified
    on_create_button_clicked : ->
        if not @props.file_search?.length > 0
            @props.actions.set_focused_page('project-new-file')
        else if @props.file_search?[@props.file_search.length - 1] == '/'
            @props.create_folder()
        else
            @props.create_file()


    # TODO: Make better help text
    render_help_alert : ->
        last_folder_index = @props.file_search.lastIndexOf('/')
        if @props.file_search.indexOf('\\') != -1
            <Alert style={marginTop: '10px', fontWeight : 'bold'} bsStyle='danger'>
                Warning: \ is an illegal character
            </Alert>
        # Non-empty search and there is a file divisor ('/')
        else if @props.file_search.length > 0 and last_folder_index > 0
            <Alert style={marginTop: '10px'} bsStyle='info'>
                {@render_help_text(last_folder_index)}
            </Alert>
