//! Server-side rendering (SSR) implementations for filter components
//!
//! These components render filter UI during server-side rendering,
//! providing initial HTML structure before client-side hydration.

// use crate::{get_active_button_classes, get_inactive_button_classes};

use leptos::prelude::*;

use super::unified::UnifiedCategoryFilter;

/// SSR-only Content Category Filter Component
///
/// Renders the initial HTML structure for category filtering during SSR.
/// Client-side functionality is handled by the client-side component after
/// hydration.
#[component]
pub fn CategoryFilterSSR(
    content_type: String,
    language: String,
    #[prop(optional)] all_emoji: Option<String>,
) -> impl IntoView {
    view! {
        <div class="mb-8">
            <UnifiedCategoryFilter
                content_type=content_type.clone()
                language=language.clone()
                _all_emoji=all_emoji.unwrap_or_default()
            />
        </div>
    }
}
