diff --git a/crates/notedeck/src/note/action.rs b/crates/notedeck/src/note/action.rs index c2afa33..e85c703 100644 --- 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 index 8821119..afcffe5 100644 --- 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;