//! Generated SSR {ComponentName} page component
//!
//! Auto-generated server-side rendered page with pattern-based key discovery.

use leptos::prelude::*;
use shared::{
    i18n::{build_page_content_patterns, SsrTranslator},
    config::get_default_language,
};

/// SSR {ComponentName} Page with pattern-based key discovery
#[component]
pub fn {ComponentName}PageSSR(
    #[prop(default = get_default_language().to_string())] _language: String,
) -> impl IntoView {
    // Use pattern-based key discovery - same as client for perfect hydration sync
    // Automatically discovers ALL keys matching patterns from FTL files
    let ssr_i18n = SsrTranslator::new(language);
    let content = build_page_content_patterns(&ssr_i18n, {patterns});

    view! {
        <crate::{ModuleName}::unified::Unified{ComponentName}Page lang_content=content />
    }
}
