# tabs


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Tab Switch Handler

## Router

------------------------------------------------------------------------

<a
href="https://github.com/cj-mills/cjm-transcript-source-select/blob/main/cjm_transcript_source_select/routes/tabs.py#L73"
target="_blank" style="float:right; font-size:smaller">source</a>

### init_tabs_router

``` python

def init_tabs_router(
    state_store:SQLiteWorkflowStateStore, # The workflow state store
    workflow_id:str, # The workflow identifier
    source_service:SourceService, # The source service for queries
    prefix:str, # Route prefix (e.g., "/workflow/selection/tabs")
    urls:SelectionUrls, # URL bundle for rendering
    render_local_files_panel:Optional=None, # Render fn for Files tab content
    sb_state:Any=None, # SourceBrowserRouterState for DB tab VC rendering
)->Tuple: # (router, route_dict)

```

*Initialize tab switching routes.*
