#pragma once #include #include #include #include "libcontrol.h" #include using namespace ftxui; class InformationTab { public: InformationTab(std::shared_ptr robot_controller, uint8_t device_id); Component createComponent(); private: std::shared_ptr robot_controller_; uint8_t device_id_; std::string getModuleTypeString(ModuleType type); std::string getConnectionTypeString(Messaging::ConnectionType type); std::string formatTimeSince(const std::chrono::time_point& time_point); };