MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / StorageFromContext

Function StorageFromContext

src/storage.tsx:43–49  ·  view source on GitHub ↗
(props: StorageImageProps & React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>)

Source from the content-addressed store, hash-verified

41};
42
43function StorageFromContext(props: StorageImageProps & React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) {
44 const storage = useStorage();
45
46 props = { ...props, storage };
47
48 return <INTERNALStorageImage {...props} />;
49}
50
51function INTERNALStorageImage(props: StorageImageProps & React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>): JSX.Element {
52 let { storage, storagePath, suspense, placeHolder, ...imgProps } = props;

Callers

nothing calls this directly

Calls 1

useStorageFunction · 0.85

Tested by

no test coverage detected