The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { lazy, Suspense } from "react"; |
| 2 | |
| 3 | import { FileSurfaceLoading } from "./fileSurfaceChrome"; |
| 4 | |
| 5 | const PreviewImageContent = lazy(() => import("./PreviewImageContent")); |
| 6 | |
| 7 | export function PreviewImage(props: { |
| 8 | readonly src: string; |
| 9 | readonly name: string; |
| 10 | readonly mimeType?: string; |
| 11 | readonly onError?: () => void; |
| 12 | }) { |
| 13 | return ( |
| 14 | <Suspense fallback={<FileSurfaceLoading />}> |
| 15 | <PreviewImageContent {...props} /> |
| 16 | </Suspense> |
| 17 | ); |
| 18 | } |