from __future__ import annotations

from importlib import import_module
from typing import Any

_EXPORTS = {
    "Dashboard": "ui.dashboard",
    "DashboardCallbacks": "ui.view_model",
    "build_dashboard_vm": "ui.view_model",
    "Settings": "ui.settings_store",
    "SettingsStore": "ui.settings_store",
    "AlertsTab": "ui.alerts_tab",
    "ProviderTab": "ui.provider_tab",
    "Footer": "ui.footer",
}

__all__ = sorted(_EXPORTS)


def __getattr__(name: str) -> Any:
    module_name = _EXPORTS.get(name)
    if module_name is None:
        raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
    return getattr(import_module(module_name), name)
