import { type Context, createContext, type ReactNode } from "react"; import type { ResolvedSegment } from "./types"; export interface OutletContextValue { content: ReactNode; parallel?: ResolvedSegment[]; segment?: ResolvedSegment; loaderData?: Record; parent?: OutletContextValue | null; /** Loading component for Suspense fallback (from segment's loading() definition) */ loading?: ReactNode; } export const OutletContext: Context = createContext(null);