(child: rx.Component, *args, **kwargs)
| 21 | ) |
| 22 | |
| 23 | def base_page(child: rx.Component, *args, **kwargs) -> rx.Component: |
| 24 | if not isinstance(child,rx. Component): |
| 25 | child = rx.heading("this is not a valid child element") |
| 26 | return rx.cond( |
| 27 | SessionState.is_authenticated, |
| 28 | base_dashboard_page(child, *args, **kwargs), |
| 29 | base_layout_component(child, *args, **kwargs ), |
| 30 | ) |
no test coverage detected