//=========================================== // THIS FILE IS AUTO-GENERATED FROM TEMPLATE. DO NOT EDIT IT DIRECTLY UNLESS YOU ALSO EDIT THE CORRESPONDING FILE IN packages/template //=========================================== import React, { Suspense } from 'react'; import { StackAdminApp, StackClientApp, StackServerApp, hexclaveAppInternalsSymbol } from '../lib/hexclave-app'; import { HexclaveProviderClient } from './hexclave-provider-client'; import { TranslationProvider } from './translation-provider'; function NextStackProvider({ children, app, lang, translationOverrides, }: { lang?: React.ComponentProps['lang'], /** * A mapping of English translations to translated equivalents. * * These will take priority over the translations from the language specified in the `lang` property. Note that the * keys are case-sensitive. */ translationOverrides?: Record, children: React.ReactNode, // list all three types of apps even though server and admin are subclasses of client so it's clear that you can pass any app: StackClientApp | StackServerApp | StackAdminApp, }) { return ( {children} ); } // Pick the platform-appropriate provider implementation. Only the active branch's // line is preserved by the platform-stripping script when generating per-platform SDKs. // The /* ... */ block hides the inactive branches from the template's TypeScript compiler. const ActiveProvider = NextStackProvider; // Named exports live outside the platform conditional so the @deprecated JSDoc can // use a /** ... */ block without colliding with the outer comment terminator. export const HexclaveProvider = ActiveProvider; /** @deprecated Use `HexclaveProvider` from the `@hexclave/*` package instead — same symbol, new brand name. See https://docs.hexclave.com/migration. */ export const StackProvider = ActiveProvider; export default ActiveProvider;