// rocie - An enterprise grocery management system - Web app // // Copyright (C) 2026 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Rocie. // // You should have received a copy of the License along with this program. // If not, see . use leptos::{ IntoView, component, prelude::{ClassAttribute, ElementChild, GetUntracked}, view, }; use leptos_router::{ NavigateOptions, hooks::{use_navigate, use_query_map}, }; use crate::components::{ catch_errors::CatchErrors, inventory::Inventory, login_wall::LoginWall, product_overview::ProductOverview, product_parent_overview::ProductParentOverview, recipies::Recipies, site_header::SiteHeader, unit_overview::UnitOverview, }; #[component] pub fn Home() -> impl IntoView { let query_map = use_query_map().get_untracked(); let navigate = use_navigate(); if let Some(path) = query_map.get("path") { navigate(&path, NavigateOptions::default()); } view! {

} }