#![recursion_limit = "256"]
//! App WASM hydration entry point.
//!
//! This provides unified hydration for the combined app, with lazy-loaded
//! admin routes for optimal bundle size.

mod app;

pub use app::{combined_shell, CombinedApp};

#[cfg(feature = "ssr")]
pub use app::CombinedAppState;

#[cfg(feature = "hydrate")]
#[wasm_bindgen::prelude::wasm_bindgen]
pub fn hydrate() {
    console_error_panic_hook::set_once();
    // Use hydrate_lazy to enable lazy component loading
    leptos::mount::hydrate_lazy(CombinedApp);
}
