Doc comments on all modules, components, entities, helpers and type aliases; larger comments on the important entities (Dashboard, PlayerData, Context, App, Numput, item data). No behavior changes.
16 lines
418 B
Rust
16 lines
418 B
Rust
use crate::prelude::*;
|
||
use leptos::prelude::*;
|
||
use leptos_router::components::A;
|
||
|
||
/// Top navigation: links to the three routes (character, inventory, wiki).
|
||
#[component]
|
||
pub fn Nav () -> impl IntoView {
|
||
view! {
|
||
<nav class="main-nav">
|
||
<A href="/">Персонаж</A>
|
||
<A href="/inv">Инвентарь</A>
|
||
<A href="/wiki">Информация</A>
|
||
</nav>
|
||
}
|
||
}
|