MCPcopy Index your code
hub / github.com/codingforentrepreneurs/full-stack-python / base_page

Function base_page

full_stack_python/ui/base.py:23–30  ·  view source on GitHub ↗
(child: rx.Component, *args, **kwargs)

Source from the content-addressed store, hash-verified

21 )
22
23def 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 )

Callers 15

indexFunction · 0.85
blog_post_list_pageFunction · 0.85
blog_post_add_pageFunction · 0.85
blog_post_edit_pageFunction · 0.85
blog_post_detail_pageFunction · 0.85
my_login_pageFunction · 0.85
my_register_pageFunction · 0.85
my_logout_pageFunction · 0.85
protected_pageFunction · 0.85
about_pageFunction · 0.85
pricing_pageFunction · 0.85

Calls 2

base_dashboard_pageFunction · 0.85
base_layout_componentFunction · 0.85

Tested by

no test coverage detected