 MachineDetails = require './machinedetails'
 Machine = require 'app/providers/machine'
 immutable = require 'immutable'
-VirtualMachinesSelectedMachineFlux = require 'home/virtualmachines/flux/selectedmachine'
 KDReactorMixin = require 'app/flux/base/reactormixin'
 EnvironmentFlux = require 'app/flux/environment'
 module.exports = class MachinesListItem extends React.Component

  getDataBindings: ->

    return {
      selectedMachine: VirtualMachinesSelectedMachineFlux.getters.selectedMachine
      expandedMachineLabel: EnvironmentFlux.getters.expandedMachineLabelStore
    }


  renderMachineDetails: ->

    return null  unless @props.shouldRenderDetails
    return null  unless @props.machine.get('_id') is @state.activeMachine
    <main className="MachinesListItem-machineDetails">
      <MachineDetails
        machine={@props.machine}
