'use client'; /** * Lazy-loaded OpenapiViewer Component * * Heavy OpenAPI viewer (~400KB) is loaded only when component is rendered. * Use this for automatic code-splitting with Suspense fallback. * * For direct imports without lazy loading, use: * import OpenapiViewer from '@djangocfg/ui-tools/openapi' */ import * as React from 'react'; import { createLazyComponent } from '../../../../common'; import { PlaygroundProvider } from './context/PlaygroundContext'; import type { ApiKey, PlaygroundConfig, SchemaSource } from './types'; export interface PlaygroundProps { config: PlaygroundConfig; } export type { ApiKey, PlaygroundConfig, SchemaSource }; function OpenapiLoadingFallback() { return (
Loading API Playground...