--- import { Icon } from 'astro-icon/components' import { differenceInDays, isPast } from 'date-fns' import { verificationStatusesByValue } from '../constants/verificationStatus' import { cn } from '../lib/cn' import TimeFormatted from './TimeFormatted.astro' import type { Prisma } from '@prisma/client' const RECENTLY_ADDED_DAYS = 7 type Props = { service: Prisma.ServiceGetPayload<{ select: { verificationStatus: true verificationProofMd: true verificationSummary: true listedAt: true createdAt: true verificationSteps: { select: { status: true } } } }> } const { service } = Astro.props const listedDate = service.listedAt ?? service.createdAt const wasRecentlyAdded = isPast(listedDate) && differenceInDays(new Date(), listedDate) < RECENTLY_ADDED_DAYS --- { service.verificationStatus === 'VERIFICATION_FAILED' ? (