import React from 'react'; export type AppShellContextValue = Record; export const AppShellContext = React.createContext(null); export const useAppShell = (): AppShellContextValue => { const context = React.useContext(AppShellContext); if (!context) { throw new Error('AppShellContext not found. Ensure routes are nested under AppLayout.'); } return context; };