--- import { Icon } from 'astro-icon/components' import MiniLayout from '../../layouts/MiniLayout.astro' import { takeCounts } from '../../lib/feeds' const user = Astro.locals.user const feeds = [ { title: user ? 'Your notifications' : 'User notifications', description: `Last ${takeCounts.userNotifications.toLocaleString()} of your notifications`, rss: user ? `/feeds/user/${user.feedId}/notifications.xml` : '/feeds/user/[feedId]/notifications.xml', icon: 'ri:notification-line', replacementDescription: user ? null : "Replace [feedId] with the user feed ID, found in the user's notifications page", }, { title: 'Service comments', description: `Last ${takeCounts.serviceComments.toLocaleString()} comments (and reviews) from a specific service`, rss: '/feeds/service/[slug]/comments.xml', icon: 'ri:chat-3-line', replacementDescription: 'Replace [slug] with the actual service slug', }, { title: 'Service events', description: `Last ${takeCounts.serviceEvents.toLocaleString()} events from a specific service`, rss: '/feeds/service/[slug]/events.xml', icon: 'ri:calendar-event-line', replacementDescription: 'Replace [slug] with the actual service slug', }, { title: 'All events', description: `Last ${takeCounts.allEvents.toLocaleString()} events from all listed services`, rss: '/feeds/events.xml', icon: 'ri:calendar-2-line', replacementDescription: null, }, ] as const satisfies { title: string description: string rss: `/feeds/${string}` icon: string replacementDescription: string | null }[] ---
{ feeds.map((feed) => (

{feed.title}

{feed.description}

{!!feed.replacementDescription && (

{feed.replacementDescription}

)}
)) }