 {React, ReactDOM, rtypes, rclass, Redux} = require('./smc-react')
 {Col, Row, ButtonToolbar, ButtonGroup, MenuItem, Button, Well, Input,
  ButtonToolbar, Popover, OverlayTrigger, SplitButton, MenuItem, Alert} =  require('react-bootstrap')
+ReactDOMServer = require('react-dom/server')   # for dropzone below
+Dropzone = require('react-dropzone-component')
 misc = require('smc-util/misc')
 {ActivityDisplay, DeletedProjectWarning, DirectoryInput, Icon, Loading, ProjectState, SAGE_LOGO_COLOR
  SearchInput, TimeAgo, ErrorDisplay, Space, Tip, LoginLink, Footer} = require('./r_misc')

    getDefaultProps : ->
        file_search : ''

    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))
        is_public = @props.file_map[name].is_public

        @props.actions.set_current_path(path, update_file_listing=true)
        @props.actions.set_url_to_path(path)

    dragover : (e, enter) ->
        #e.preventDefault()
        @setState(dragover: enter)
        if enter
            console.log "dragarea entered"#, e
        else
            console.log "dragarea left"#, e

    parent_directory : ->
        styles =
            fontWeight   : 'bold'
