//! Safe helper functions and data structures for unified content pages
//!
//! This module provides non-reactive, panic-safe utilities for content
//! rendering that avoid hydration issues and reactive graph problems.

// Sub-modules
pub mod cta_section;
pub mod defs;
pub mod renderer;
pub mod utils;

// Re-exports
pub use cta_section::CTASection;
pub use defs::{
    build_content_page_config, build_grid_classes,
    get_available_content_types as get_available_content_types_defs, get_content_routes,
    is_valid_content_type, BreadcrumbData, CTAViewType, ContentPageConfig,
};
pub use renderer::{ContentRenderer, UnifiedContentRenderer};
// Note: Many utility functions not available in simplified rustelo_utils
// Using only available functions from rustelo_utils
pub use rustelo_utils::{
    normalize_category, normalize_tag, sanitize_html, title_to_slug, to_slug, validate_email,
    validate_file_path, validate_url,
};

// Unified API function to avoid ambiguity
pub fn get_available_content_types() -> Vec<String> {
    get_available_content_types_defs()
}

// All functionality has been moved to sub-modules for better organization
