aex/src/components/header.rs

18 lines
464 B
Rust
Raw Normal View History

2025-09-11 07:27:57 +00:00
use crate::{ entities::DashboardStoreFields, prelude::* };
use leptos::prelude::*;
#[component]
pub fn Header () -> impl IntoView {
let state = expect_context::<Context>();
let campaign = state.campaign();
let date = state.date();
view! {
<header>
<h1>Aboba v{env!("CARGO_PKG_VERSION")} by mk</h1>
<h2>{campaign.get_untracked()}</h2>
<h3>{move || date.get().to_string()}</h3>
</header>
}
}