Vercel/src/lens/LensOverview.tsx
2025-03-16 11:56:21 -05:00

35 lines
705 B
TypeScript

import { Photo, PhotoDateRange } from '@/photo';
import { Lens, createLensKey } from '.';
import LensHeader from './LensHeader';
import PhotoGridContainer from '@/photo/PhotoGridContainer';
export default function LensOverview({
lens,
photos,
count,
dateRange,
animateOnFirstLoadOnly,
}: {
lens: Lens,
photos: Photo[],
count: number,
dateRange?: PhotoDateRange,
animateOnFirstLoadOnly?: boolean,
}) {
return (
<PhotoGridContainer {...{
cacheKey: `lens-${createLensKey(lens)}`,
photos,
count,
lens,
animateOnFirstLoadOnly,
header: <LensHeader {...{
lens,
photos,
count,
dateRange,
}} />,
}} />
);
}