import { Trash2 } from 'lucide-react'; import { TRASH_RETENTION_DAYS } from '@family-wishlist/shared'; import { WishCard } from '@/components/WishCard/WishCard'; import { useRestoreWish, useWishes } from '@/features/wishes/wishes.hooks'; import { daysLeftUntil } from '@/lib/format'; export function TrashPage() { const { data, isLoading } = useWishes('deleted'); const restore = useRestoreWish(); return (
Deleted wishes are kept for {TRASH_RETENTION_DAYS} days, then permanently removed.
Deleted wishes will appear here for 30 days.
Auto-removes in {left} day{left === 1 ? '' : 's'}
} /> ); })}