import BrowserOnly from "@docusaurus/BrowserOnly"; import { lazy, Suspense } from "react"; export interface CustomWidgetCodeExampleProps { id: string; label: string; code: string; language?: "json" | "jsx"; height?: string; } export interface CanonicalCustomWidgetExampleProps { id: string; label: string; example: "requests" | "optionsSchema" | "defaultOptions"; height?: string; } const LazyCanonicalCustomWidgetExample = lazy(async () => { const module = await import("./custom-widget-code-client"); return { default: module.CanonicalCustomWidgetExampleClient }; }); const LazyCustomWidgetCodeExample = lazy(async () => { const module = await import("./custom-widget-code-client"); return { default: module.CustomWidgetCodeExampleClient }; }); const LazyBundledCustomWidgetGallery = lazy(async () => { const module = await import("./custom-widget-code-client"); return { default: module.BundledCustomWidgetGalleryClient }; }); export function CanonicalCustomWidgetExample(props: CanonicalCustomWidgetExampleProps) { return ( }> {() => ( }> )} ); } export function CustomWidgetCodeExample(props: CustomWidgetCodeExampleProps) { return ( }> {() => ( }> )} ); } export function BundledCustomWidgetGallery() { return ( }> {() => ( }> )} ); } function CodeExampleFallback({ height }: { height?: string }) { return
; }