aex/src/components/nav.rs
yaroslav k 257f254b13 document every function, trait and struct in src/
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.
2026-08-04 09:21:25 +03:00

16 lines
418 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
}
}