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

main
tsx 18 lines 453 Bytes
Raw
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 }