securityos/node_modules/next/dist/client/components/layout-router.d.ts

23 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { FlightSegmentPath, ChildProp } from '../../server/app-render/types';
import type { ErrorComponent } from './error-boundary';
import React from 'react';
/**
* OuterLayoutRouter handles the current segment as well as <Offscreen> rendering of other segments.
* It can be rendered next to each other with a different `parallelRouterKey`, allowing for Parallel routes.
*/
export default function OuterLayoutRouter({ parallelRouterKey, segmentPath, childProp, error, errorStyles, templateStyles, loading, loadingStyles, hasLoading, template, notFound, notFoundStyles, styles, }: {
parallelRouterKey: string;
segmentPath: FlightSegmentPath;
childProp: ChildProp;
error: ErrorComponent;
errorStyles: React.ReactNode | undefined;
templateStyles: React.ReactNode | undefined;
template: React.ReactNode;
loading: React.ReactNode | undefined;
loadingStyles: React.ReactNode | undefined;
hasLoading: boolean;
notFound: React.ReactNode | undefined;
notFoundStyles: React.ReactNode | undefined;
styles?: React.ReactNode;
}): React.JSX.Element;