mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
22 lines
517 B
C++
22 lines
517 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
#include "ftxui/component/component.hpp"
|
|
#include "sharing/linux/tui/components/share_target.h"
|
|
|
|
namespace nearby::sharing::linux_tui {
|
|
using namespace ftxui;
|
|
|
|
struct IncomingShareCardOptions {
|
|
std::string device_name;
|
|
ShareTargetType device_type = ShareTargetType::kUnknown;
|
|
std::function<void()> on_accept;
|
|
std::function<void()> on_decline;
|
|
};
|
|
|
|
Component IncomingShareCard(IncomingShareCardOptions options);
|
|
|
|
} // namespace nearby::sharing::linux_tui
|