The best way to control Claude Code, Codex and more from any computer or phone

main
tsx 13 lines 368 Bytes
Raw
1 import { lazy, Suspense } from "react";
2
3 import { FileSurfaceLoading } from "./fileSurfaceChrome";
4
5 const MermaidViewer = lazy(() => import("./MermaidViewer"));
6
7 export function MermaidFilePreview(props: { readonly text: string }) {
8 return (
9 <Suspense fallback={<FileSurfaceLoading />}>
10 <MermaidViewer key={props.text} {...props} />
11 </Suspense>
12 );
13 }