import type { ReactNode } from 'react' import { Link } from '@tanstack/react-router' import { InstallCta } from './install-cta.tsx' import { UpdateBanner } from './update-banner.tsx' import { createRoutes } from '../routes.ts' import { useAppShell } from '../router-context.ts' export type AppShellProps = { page: 'home' | 'about' | 'notes' heading: string lede?: ReactNode children?: ReactNode } /** * Tooltips (`data-tip`): tip only controls that are NOT obvious from visible * label/text. Labeled nav and action buttons do not get tips. */ export function AppShell({ page, heading, lede, children }: AppShellProps) { const { appBasePath } = useAppShell() const routes = createRoutes(appBasePath) return (

{heading}

{lede ?

{lede}

: null}
{children}
) }