SPB Git

Repository Public

lazy.tsx 489 B 8 lines tsx

1'use client';2import dynamic from 'next/dynamic';34const Loading = () => <div className="flex h-full items-center justify-center text-xs text-muted">Loading editor…</div>;5/** Monaco is large: it is only fetched when an editor is actually shown. */6export const CodeEditor = dynamic(() => import('./monaco').then((m) => m.CodeEditor), { ssr: false, loading: Loading });7export const DiffView = dynamic(() => import('./monaco').then((m) => m.DiffView), { ssr: false, loading: Loading });8
Files main
Menu

Theme