MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / useThumbnail

Function useThumbnail

src/hooks/useThumbnail.ts:99–105  ·  view source on GitHub ↗
(
  imageFile: File | undefined,
  imageName: string,
  enabled: boolean
)

Source from the content-addressed store, hash-verified

97 * @returns The thumbnail URL or null
98 */
99export function useThumbnail(
100 imageFile: File | undefined,
101 imageName: string,
102 enabled: boolean
103): string | null {
104 return thumbnailCache.useCache(imageFile, imageName, enabled);
105}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected