35 lines
733 B
TypeScript
35 lines
733 B
TypeScript
import { Photo, PhotoDateRange } from '@/photo';
|
|
import { Camera, createCameraKey } from '.';
|
|
import CameraHeader from './CameraHeader';
|
|
import PhotoGridContainer from '@/photo/PhotoGridContainer';
|
|
|
|
export default function CameraOverview({
|
|
camera,
|
|
photos,
|
|
count,
|
|
dateRange,
|
|
animateOnFirstLoadOnly,
|
|
}: {
|
|
camera: Camera,
|
|
photos: Photo[],
|
|
count: number,
|
|
dateRange?: PhotoDateRange,
|
|
animateOnFirstLoadOnly?: boolean,
|
|
}) {
|
|
return (
|
|
<PhotoGridContainer {...{
|
|
cacheKey: `camera-${createCameraKey(camera)}`,
|
|
photos,
|
|
count,
|
|
camera,
|
|
animateOnFirstLoadOnly,
|
|
header: <CameraHeader {...{
|
|
camera,
|
|
photos,
|
|
count,
|
|
dateRange,
|
|
}} />,
|
|
}} />
|
|
);
|
|
}
|