import { useQuery } from '@tanstack/react-query' import { photos } from '../../services/api' import type { MemoryGroup } from '../../services/api' export function MemoriesView() { const { data, isLoading } = useQuery({ queryKey: ['memories'], queryFn: () => photos.memories(), staleTime: 60_000 * 30, // 30 min — date doesn't change often }) if (isLoading) { return (
No memories for today
Photos taken on this date in previous years will appear here.
{photo.filename}