 kd                  = require 'kd'
 React               = require 'kd-react'
-classnames          = require 'classnames'
 toImmutable         = require 'app/util/toImmutable'
 Link                = require 'app/components/common/link'
 Machine             = require 'app/providers/machine'

    status = @machine ['status', 'state']
    <div className="SidebarMachinesListItem #{status}">
      <Link
        className={@getClassName()}
        # make this link dynamic pointing to latest open workspace
        href={"/IDE/#{@machine 'slug'}"}
        onClick={@bound 'handleMachineClick'}

    if typeof key is 'string'
    then @props.machine.get key
    else @props.machine.getIn key


  handleMachineClick: (event) ->
