 
 ReactDOMServer = require('react-dom/server')
 
-{Col, Row, Button, ButtonGroup, ButtonToolbar, Input, Panel, Well, SplitButton, MenuItem} = require('react-bootstrap')
+{Col, Row, Button, ButtonGroup, ButtonToolbar, Input, Panel, Well, SplitButton, MenuItem, Alert} = require('react-bootstrap')
 {ErrorDisplay, Icon, Loading, TimeAgo, Tip, ImmutablePureRenderMixin, Space} = require('./r_misc')
 {User} = require('./users')
 {salvus_client} = require('./salvus_client')

        projects_store : rtypes.object.isRequired

    getInitialState : ->
        return filename : @props.default_filename ? @default_filename()

    componentWillReceiveProps: (newProps) ->
        if newProps.default_filename != @props.default_filename

        e.preventDefault()
        if @state.filename[@state.filename.length - 1] == '/'
            @create_folder()
        else if @refs.project_new_filename.getValue().split(".").length > 1
            @create_file()

    render_header: ->
