 ###
 React component that describes the output of a cell
 ###
+
+misc = require('smc-util/misc')
 
 {React, ReactDOM, rclass, rtypes}  = require('../smc-react')
 

    render_output_prompt: ->
        collapsed = @props.cell.get('collapsed')
        exec_count = undefined
        @props.cell.get('output')?.forEach (x) ->
            if x.has('execution_count')?
                exec_count = x.get('execution_count')
                return false

                    exec_count = {exec_count}
                    collapsed  = {collapsed}
                    />
        if not @props.actions? or collapsed or not output? or output.size == 0
            return prompt
        if @props.actions?
            <OutputToggle
