Vercel/src/recents/RecentsOverview.tsx
Sam Becker b3972a6032
Date-based photo sets (#276)
* Add 'recents' and 'years' categories

* Add recents and years visibility config

* Add fundamental recent/year queries

* Display initial date-based data in sidebar

* Adjust recents data type

* Remove date rage from sidebar footer

* Reformat recents/years in sidebar

* Organize years in grid

* Rename date -> year

* Add year-based views

* Split sidebar years into rows

* Add years to cmdk menu

* Localize 'years'

* Create /recents views

* Enable recents share modals

* Fix recents og image

* Statically optimize /recents image

* Don't statically optimize /recents page

* Update i18n

* Add recents to cmdk

* Suppress spinner for year badges

* Refactor sidebar height calculation

* Add recents to sitemap
2025-06-28 11:48:48 -05:00

31 lines
629 B
TypeScript

import { Photo, PhotoDateRange } from '@/photo';
import RecentsHeader from './RecentsHeader';
import PhotoGridContainer from '@/photo/PhotoGridContainer';
export default function RecentsOverview({
photos,
count,
dateRange,
animateOnFirstLoadOnly,
}: {
photos: Photo[],
count: number,
dateRange?: PhotoDateRange,
animateOnFirstLoadOnly?: boolean,
}) {
return (
<PhotoGridContainer {...{
cacheKey: 'recents',
photos,
count,
recent: true,
header: <RecentsHeader {...{
photos,
count,
dateRange,
}} />,
animateOnFirstLoadOnly,
}} />
);
}