19 lines
421 B
Rust
19 lines
421 B
Rust
|
|
use leptos::html::ElementChild;
|
||
|
|
use leptos::{IntoView, component, view};
|
||
|
|
use leptos_router::nested_router::Outlet;
|
||
|
|
|
||
|
|
use crate::components::localization::{I18n, LanguageSelector};
|
||
|
|
|
||
|
|
#[component]
|
||
|
|
pub fn Common() -> impl IntoView {
|
||
|
|
view! {
|
||
|
|
<I18n>
|
||
|
|
<header>
|
||
|
|
<a href="/">"🏡"</a>
|
||
|
|
<LanguageSelector />
|
||
|
|
</header>
|
||
|
|
<Outlet />
|
||
|
|
</I18n>
|
||
|
|
}
|
||
|
|
}
|