({ storagePath })
| 52 | }; |
| 53 | |
| 54 | const FetchImage = ({ storagePath }) => { |
| 55 | const storage = useStorage(); |
| 56 | |
| 57 | const { status, data: imageURL } = useStorageDownloadURL(ref(storage, storagePath)); |
| 58 | if (status === 'loading') { |
| 59 | return <LoadingSpinner />; |
| 60 | } |
| 61 | |
| 62 | return <img src={imageURL} alt="demo download" style={{ width: '200px', height: '200px' }} />; |
| 63 | }; |
| 64 | |
| 65 | export function Storage() { |
| 66 | const app = useFirebaseApp(); |
nothing calls this directly
no test coverage detected