@use crate::{Button, LinkKind}; @(button: &Button) @button.label @if let Some(href) = button.href.as_ref() { @match button.link_kind { LinkKind::CurrentTab => { @Html(&button.label) } LinkKind::NewTab => { @Html(&button.label) } } } else { @Html(&button.label) }