// 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 icondata_core::Icon as DataIcon; use leptos::prelude::{ClassAttribute, ElementChild, IntoView, OnAttribute, component, view}; use leptos_icons::Icon; use leptos_router::{NavigateOptions, hooks::use_navigate}; #[component] pub fn SiteHeader( logo: DataIcon, back_location: &'static str, name: &'static str, #[prop(default = None)] menu: Option, ) -> impl IntoView { let navigate = use_navigate(); view! {

{name}

{menu}
} }