({ storagePath })
| 48 | }; |
| 49 | |
| 50 | const FetchImage = ({ storagePath }) => { |
| 51 | const storage = useStorage(); |
| 52 | |
| 53 | const { data: imageURL } = useStorageDownloadURL(ref(storage, storagePath)); |
| 54 | |
| 55 | return <img src={imageURL} alt="demo download" style={{ width: '200px', height: '200px' }} />; |
| 56 | }; |
| 57 | |
| 58 | export function Storage() { |
| 59 | const app = useFirebaseApp(); |
nothing calls this directly
no test coverage detected