Skip to content

Commit a471d03

Browse files
authored
fix: re-add download (#133)
1 parent 56a6382 commit a471d03

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/search/item.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import type { StacCollection, StacLink, TemporalExtent } from "stac-ts";
3636
import useStacMap from "../../hooks/stac-map";
3737
import useStacSearch from "../../hooks/stac-search";
3838
import type { StacSearch } from "../../types/stac";
39+
import DownloadButtons from "../download";
3940
import { SpatialExtent } from "../extents";
4041
import Section from "../section";
4142

@@ -319,6 +320,12 @@ export function ItemSearchResults({
319320
</Alert.Content>
320321
</Alert.Root>
321322
)}
323+
{items && (
324+
<DownloadButtons
325+
items={items}
326+
disabled={(autoLoad && results.hasNextPage) || results.isFetching}
327+
></DownloadButtons>
328+
)}
322329
</Stack>
323330
</Section>
324331
);

0 commit comments

Comments
 (0)