mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
20 lines
429 B
C++
20 lines
429 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#include "ftxui/component/component.hpp"
|
|
#include "sharing/linux/tui/file_picker.h"
|
|
|
|
namespace nearby::sharing::linux_tui {
|
|
using namespace ftxui;
|
|
|
|
struct FilePickerCardOptions {
|
|
FilePicker* file_picker = nullptr;
|
|
std::function<void(std::string)> on_file_selected;
|
|
};
|
|
|
|
Component FilePickerCard(FilePickerCardOptions options);
|
|
|
|
} // namespace nearby::sharing::linux_tui
|