export async function getStatus({ client }) {
  var {
    isRobotRunning,
    isRobotReady,
    is_emergencyStop,
    isCollided,
    is_errorState,
    isBusy,
    isMoveFinished,
    isHome,
    isZero,
    isInResetting,
    isDirectTeachingMode,
    isTeachingMode,
    isProgramRunning,
    isProgramPaused,
    isContyConnected
  } = await client.getRobotStatus()

  return {
    running: isRobotRunning,
    ready: isRobotReady,
    busy: isBusy,
    moveFinished: isMoveFinished,
    home: isHome,
    zero: isZero,
    teachingMode: isTeachingMode,
    error: is_errorState,
    collided: isCollided,
    emergency: is_emergencyStop
  }
}
