Files
vibetorrent/frontend/src/components/layout/protected.rs
spinline 5449651db6
All checks were successful
Build MIPS Binary / build (push) Successful in 5m21s
feat: remove status bar from layout
2026-02-12 21:38:25 +03:00

28 lines
893 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 leptos::prelude::*;
use crate::components::layout::sidebar::Sidebar;
use crate::components::layout::toolbar::Toolbar;
use crate::components::ui::sidenav::{SidenavWrapper, Sidenav, SidenavInset};
#[component]
pub fn Protected(children: Children) -> impl IntoView {
view! {
<SidenavWrapper attr:style="--sidenav-width:16rem; --sidenav-width-icon:3rem;">
// Masaüstü Sidenav
<Sidenav>
<Sidebar />
</Sidenav>
// İçerik Alanı
<SidenavInset class="flex flex-col h-screen overflow-hidden">
// Toolbar (Üst Bar)
<Toolbar />
// Ana İçerik
<main class="flex-1 overflow-hidden relative bg-background">
{children()}
</main>
</SidenavInset>
</SidenavWrapper>
}
}