"""UI page registration exports."""

from fastapi import FastAPI
from nicegui import ui

from transcription.ui.pages.jobs_page import register_page as register_jobs_page
from transcription.ui.pages.upload_page import register_page as register_upload_page


def register_pages(app: FastAPI) -> None:
    """Register all NiceGUI pages and mount them onto the FastAPI app."""
    register_upload_page()
    register_jobs_page()
    ui.run_with(app, mount_path="/ui", show_welcome_message=False)
