"""Federation defpage setup — registers layouts and loads .sx pages."""
from __future__ import annotations


def setup_federation_pages() -> None:
    """Register federation-specific layouts and load page definitions."""
    _register_federation_layouts()
    _load_federation_page_files()


def _load_federation_page_files() -> None:
    import os
    from shared.sx.pages import load_page_dir
    load_page_dir(os.path.dirname(__file__), "federation")


def _register_federation_layouts() -> None:
    from shared.sx.layouts import register_sx_layout
    register_sx_layout("social", "social-layout-full", "social-layout-oob")
