Vercel/src/focal/FocalLengthOverview.tsx

34 lines
685 B
TypeScript

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