# transcription/ui/components/data_display.py
from nicegui import ui


def metadata_row(label: str, value: str):
    """Render a high-density, low-contrast key-value pair."""
    with ui.row().classes("justify-between w-full border-b ui-border-subtle pb-1 text-xs"):
        ui.label(label).classes("ui-text-muted")
        ui.label(value).classes("font-semibold ui-text-primary")


def archival_badge(text: str):
    """Standardized Aged Sepia badge."""
    return ui.badge(text, color="secondary", text_color="dark").classes("text-[10px]")