@chipi-stack/nextjs
Version:
Chipi SDK for Next.js applications with server-side support
21 lines (18 loc) • 763 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import React from 'react';
interface ChipiProviderProps {
children: React.ReactNode;
apiPublicKey: string;
environment: 'development' | 'production';
}
/**
* Client-side Chipi Provider for Next.js App Router
*
* This is the client component version that handles client-side functionality.
* It wraps children with QueryClient and the React Chipi provider.
*
* Since this component is marked with 'use client', it's safe to import
* from @chipi-stack/chipi-react directly as it will never run on the server.
*/
declare function ChipiProvider({ children, apiPublicKey, environment }: ChipiProviderProps): react_jsx_runtime.JSX.Element;
export { ChipiProvider, type ChipiProviderProps };