from dash import html, dcc from ..datalake import stages from ..libs.stage.stage import AbstractStage def layout(stage_name=None, schema_name=None, table_name=None): stage = stages[stage_name] return html.Div([ html.H2([ dcc.Link( f"{stage.name}", href=f"/stage/{stage.name}", className="hover:underline" ), html.Span(" > "), dcc.Link( f"{schema_name}", href=f"/stg/{stage.name}/schema/{schema_name}", className="hover:underline" ), html.Span(" > "), html.Span(table_name), ], className="text-2xl p-4 py-2" ), ])