use leptos::prelude::*;

/// Root application component rendered during SSR and hydrated by the WASM client.
///
/// The `path` prop carries the request URL so child components can derive
/// the current language and page. Replace the placeholder `view!` with your
/// actual navigation, layout, and page routing once you have pages defined.
#[component]
pub fn AppComponent(#[prop(default = String::new())] path: String) -> impl IntoView {
    view! {
        <div class="min-h-screen">
            <header>
                <nav>
                    <a href="/">"Home"</a>
                </nav>
            </header>
            <main>
                <p>"Path: " {path}</p>
            </main>
        </div>
    }
}
