/* This file is part of jellything (https://codeberg.org/metamuffin/jellything) which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2026 metamuffin */ use crate::RenderInfo; use markup::define; define! { Message<'a>(ri: &'a RenderInfo<'a>, kind: &'a str, text: &'a str) { @let _ = ri; @match *kind { "success" => { section.message { p.success { @text } } } "error" => { section.message { p.error { @text } } } "neutral" | _ => { section.message { p { @text } } } } } }