- {content.attributes.scan_set[0].pages?.data.map((page, index) => (
-
{
- setLightboxOpen(true);
- if (content.attributes?.scan_set?.[0]?.pages) {
- const images: string[] = [];
- content.attributes.scan_set[0].pages.data.map((image) => {
- if (image.attributes?.url)
- images.push(
- getAssetURL(
- image.attributes.url,
- ImageQuality.Large
- )
- );
- });
- setLightboxImages(images);
- }
-
- setLightboxIndex(index);
- }}
- >
- {page.attributes && (
-
![]()
- )}
-
- ))}
-
- ) : (
-