     activeMachine : EnvironmentFlux.getters.activeMachine
     activeLeavingMachine : EnvironmentFlux.getters.activeLeavingSharedMachineId
     activeInvitationMachineId : EnvironmentFlux.getters.activeInvitationMachineId
+    requiredInvitationMachine : EnvironmentFlux.getters.requiredInvitationMachine
 
 
   constructor: (props) ->

      actions.unsetMachineListItem @machine('_id'), this


  componentWillReceiveProps: ->

    return  unless @refs.sidebarMachinesListItem

    coordinates = getBoundingClientReact @refs.sidebarMachinesListItem
    @setState { coordinates: coordinates }


  machine: (key) ->



  renderInvitationWidget: ->

    debug 'machine id', @props.machine.get '_id'
    debug 'invitaion id', @state.activeInvitationMachineId
    debug 'coordinates', @state.coordinates

    return null  unless @state.coordinates
    return null  unless @props.machine.get('_id') is @state.activeInvitationMachineId

    debug 'invited widget is about to be rendered'

    <SharingMachineInvitationWidget
      key="InvitationWidget-#{@props.machine.get '_id'}"
