| 1 | import { Suspense, lazy } from "react"; |
| 2 | import type { PinnedFileInfo } from "../lib/pinnedContextBridge"; |
| 3 | |
| 4 | const PinnedFilesShelf = lazy(() => import("./PinnedFilesShelf").then((module) => ({ default: module.PinnedFilesShelf }))); |
| 5 | |
| 6 | export function ComposerPinnedFilesShelf({ tabId, pinnedFiles }: { tabId: string; pinnedFiles?: PinnedFileInfo[] }) { |
| 7 | if (!pinnedFiles?.length) return null; |
| 8 | return <Suspense fallback={null}><PinnedFilesShelf tabId={tabId} pinnedFiles={pinnedFiles} /></Suspense>; |
| 9 | } |
| 10 |