You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					26 lines
				
				1.1 KiB
			
		
		
			
		
	
	
					26 lines
				
				1.1 KiB
			| 
								 
											3 years ago
										 
									 | 
							
								import * as React from "react";
							 | 
						||
| 
								 | 
							
								import type { Router as RemixRouter, StaticHandlerContext } from "@remix-run/router";
							 | 
						||
| 
								 | 
							
								import type { Location, RouteObject } from "react-router-dom";
							 | 
						||
| 
								 | 
							
								export interface StaticRouterProps {
							 | 
						||
| 
								 | 
							
								    basename?: string;
							 | 
						||
| 
								 | 
							
								    children?: React.ReactNode;
							 | 
						||
| 
								 | 
							
								    location: Partial<Location> | string;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * A <Router> that may not navigate to any other location. This is useful
							 | 
						||
| 
								 | 
							
								 * on the server where there is no stateful UI.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								export declare function StaticRouter({ basename, children, location: locationProp, }: StaticRouterProps): JSX.Element;
							 | 
						||
| 
								 | 
							
								export interface StaticRouterProviderProps {
							 | 
						||
| 
								 | 
							
								    context: StaticHandlerContext;
							 | 
						||
| 
								 | 
							
								    router: RemixRouter;
							 | 
						||
| 
								 | 
							
								    hydrate?: boolean;
							 | 
						||
| 
								 | 
							
								    nonce?: string;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * A Data Router that may not navigate to any other location. This is useful
							 | 
						||
| 
								 | 
							
								 * on the server where there is no stateful UI.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								export declare function StaticRouterProvider({ context, router, hydrate, nonce, }: StaticRouterProviderProps): JSX.Element;
							 | 
						||
| 
								 | 
							
								export declare function createStaticRouter(routes: RouteObject[], context: StaticHandlerContext): RemixRouter;
							 |