mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
23 lines
545 B
C++
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
|