28 lines
688 B
TypeScript
28 lines
688 B
TypeScript
'use client';
|
|
|
|
import InfinitePhotoScroll, {
|
|
InfinitePhotoScrollExternalProps,
|
|
} from './InfinitePhotoScroll';
|
|
import PhotosLarge from './PhotosLarge';
|
|
|
|
export default function PhotosLargeInfinite({
|
|
initialOffset,
|
|
itemsPerPage,
|
|
}: InfinitePhotoScrollExternalProps) {
|
|
return (
|
|
<InfinitePhotoScroll
|
|
cacheKey="PhotosLarge"
|
|
initialOffset={initialOffset}
|
|
itemsPerPage={itemsPerPage}
|
|
wrapMoreButtonInGrid
|
|
>
|
|
{({ photos, onLastPhotoVisible, revalidatePhoto }) =>
|
|
<PhotosLarge
|
|
photos={photos}
|
|
onLastPhotoVisible={onLastPhotoVisible}
|
|
revalidatePhoto={revalidatePhoto}
|
|
/>}
|
|
</InfinitePhotoScroll>
|
|
);
|
|
}
|