The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { lazy, Suspense } from "react"; |
| 2 | |
| 3 | import { FileSurfaceLoading } from "./fileSurfaceChrome"; |
| 4 | |
| 5 | const FontViewer = lazy(() => import("./FontViewer")); |
| 6 | |
| 7 | export function FontFilePreview(props: { readonly src: string; readonly name: string }) { |
| 8 | return ( |
| 9 | <Suspense fallback={<FileSurfaceLoading />}> |
| 10 | <FontViewer key={props.src} {...props} /> |
| 11 | </Suspense> |
| 12 | ); |
| 13 | } |