Spaces:
Running
Running
# components/dashboard_page.py | |
import gradio as gr | |
from components.header import Header | |
class DashboardPage: | |
"""UI elements + event wiring for the post-login dashboard.""" | |
def __init__(self): | |
with gr.Column(visible=False) as self.container: | |
# βββββ header (welcome + logout) βββββ | |
self.header = Header() | |
# βββββββββββ main body ββββββββββββ | |
# βββββββββββββββββββ event wiring ββββββββββββββββββββ | |
def register_callbacks(self, login_page, session_state): | |
# Header handles its own logout button | |
self.header.register_callbacks(login_page, self, session_state) | |