'use client'; import React, { lazy, Suspense } from 'react'; import { PlaygroundProvider } from './context/PlaygroundContext'; import type { PlaygroundConfig } from './types'; const DocsLayout = lazy(() => import('./components/DocsLayout').then((mod) => ({ default: mod.DocsLayout })) ); const LoadingFallback = () => (
Loading API Playground...
); export interface PlaygroundProps { config: PlaygroundConfig; } export const Playground: React.FC = ({ config }) => { return ( }> ); }; export type { PlaygroundConfig, SchemaSource } from './types'; export default Playground;