18 lines
464 B
Rust
18 lines
464 B
Rust
|
|
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>
|
||
|
|
}
|
||
|
|
}
|