()
| 15 | const { stacApi } = useStacApiContext(); |
| 16 | |
| 17 | const fetchCollections = async (): Promise<CollectionsResponse> => { |
| 18 | if (!stacApi) throw new Error('No STAC API configured'); |
| 19 | const response: Response = await stacApi.getCollections(); |
| 20 | return handleStacResponse<CollectionsResponse>(response); |
| 21 | }; |
| 22 | |
| 23 | const { |
| 24 | data: collections, |
nothing calls this directly
no test coverage detected