* 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
22 lines
641 B
TypeScript
22 lines
641 B
TypeScript
import { absolutePathForRecents } from '@/app/paths';
|
|
import { PhotoSetAttributes } from '../category';
|
|
import ShareModal from '@/share/ShareModal';
|
|
import RecentsOGTile from './RecentsOGTile';
|
|
import { useAppText } from '@/i18n/state/client';
|
|
|
|
export default function RecentsShareModal({
|
|
photos,
|
|
count,
|
|
dateRange,
|
|
}: PhotoSetAttributes) {
|
|
const appText = useAppText();
|
|
return (
|
|
<ShareModal
|
|
pathShare={absolutePathForRecents(true)}
|
|
navigatorTitle={appText.category.recentTitle}
|
|
socialText={appText.category.recentTitle}
|
|
>
|
|
<RecentsOGTile {...{ photos, count, dateRange }} />
|
|
</ShareModal>
|
|
);
|
|
}
|