--- import { formatLastSeenTime, PRESENCE_BANDS, PRESENCE_PARTS, type ActivityFeed } from "@/lib/activity"; import MediaViewer from "./MediaViewer.astro"; import ActivityRows from "./ActivityRows.astro"; interface Props { feed?: ActivityFeed; } const { feed } = Astro.props; const lastSeenText = feed?.lastSeenAt ? formatLastSeenTime(feed.lastSeenAt) : null; const presence = PRESENCE_PARTS[feed?.presence ?? "unknown"]; const currentBand = PRESENCE_BANDS.find(({ state }) => state === feed?.presence); const presenceDetail = currentBand ? `${currentBand.within} ago` : "not checked for a day"; ---