UNPKG

@getcronit/pylon

Version:

![Pylon cover](https://github.com/user-attachments/assets/c28e49b2-5672-4849-826e-8b2eab0360cc)

29 lines (28 loc) 721 B
import { PageProps } from '.'; declare const DataClientProvider: React.FC<{ client: any; staticData?: { cache?: any; context?: any; }; children: React.ReactNode; }>; declare const useDataClient: () => { client: any; pagesContext?: any; }; export { DataClientProvider, useDataClient }; /** * Provides the route data to components. */ declare const RouteDataProvider: React.FC<{ children: React.ReactNode; props: PageProps; name?: string; }>; /** * Hook to access the route data for the current provider layer. */ declare const useRouteData: () => PageProps; declare const useRouteId: () => string | undefined; export { RouteDataProvider, useRouteData, useRouteId };