feat(action): add ReactAction

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-10-17 15:13:38 -04:00
parent e86db45111
commit 48a52d3860
2 changed files with 13 additions and 1 deletions

View File

@@ -53,6 +53,18 @@ impl NoteAction {
}
}
#[derive(Debug, Clone)]
pub struct ReactAction {
pub note_id: NoteId,
pub content: &'static str,
}
impl ReactAction {
pub const fn new(note_id: NoteId, content: &'static str) -> Self {
Self { note_id, content }
}
}
#[derive(Debug, Eq, PartialEq, Clone)]
pub enum ZapAction {
Send(ZapTargetAmount),

View File

@@ -1,7 +1,7 @@
mod action;
mod context;
pub use action::{NoteAction, ScrollInfo, ZapAction, ZapTargetAmount};
pub use action::{NoteAction, ReactAction, ScrollInfo, ZapAction, ZapTargetAmount};
pub use context::{BroadcastContext, ContextSelection, NoteContextSelection};
use crate::Accounts;