commit 48a52d38601826e3e5bffacfa7376b58187fc0f7
parent e86db45111043ac096c2c282e77a09b797722d62
Author: kernelkind <kernelkind@gmail.com>
Date: Fri, 17 Oct 2025 15:13:38 -0400
feat(action): add `ReactAction`
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/crates/notedeck/src/note/action.rs b/crates/notedeck/src/note/action.rs
@@ -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),
diff --git a/crates/notedeck/src/note/mod.rs b/crates/notedeck/src/note/mod.rs
@@ -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;