Skip to content

frontend


Function: default()

default(): Element

Defined in: src/RootLayout.tsx:55

Root Layout

Main layout wrapper for all authenticated routes. Renders MainLayout with navigation and shared UI components, and provides patient selection context to child routes.

Child routes can access context via:

import { useOutletContext } from 'react-router-dom';
import type { LayoutCtx } from '@/RootLayout';

function MyPage() {
  const { patient, setPatient } = useOutletContext<LayoutCtx>();
  // ...
}

Returns

Element