Files
nearby/sharing/linux/tui/ui/home_screen.h
T

23 lines
545 B
C++

#pragma once
#include <functional>
#include <string>
#include "ftxui/component/component.hpp"
#include "sharing/linux/tui/file_picker.h"
#include "sharing/linux/tui/page.h"
namespace nearby::sharing::linux_tui {
struct HomeScreenOptions {
std::string hostname;
const Page* current_page = nullptr;
const std::string* selected_file = nullptr;
FilePicker* file_picker = nullptr;
std::function<void(std::string)> on_file_selected;
};
ftxui::Component HomeScreen(HomeScreenOptions options);
} // namespace nearby::sharing::linux_tui