Reactions
Reaction buttons with counts stored by an action.
Example
Show code
use std::sync::atomic::{AtomicU64, Ordering};
use zeyn::prelude::*;
use zeyn::ui::{ReactionPress, ReactionState};
pub fn overview(_ctx: &Ctx) -> Node {
SET.iter()
.fold(
Reactions::of(react, "catalog"),
|row, (key, name, symbol)| row.reaction(key, *name, symbol),
)
.state(state(None))
.into()
}