import { BranchIcon, PullRequestIcon } from "@/components/icons"; import { Box, ButtonLink, RefChip } from "@/components/ui"; import { timeAgo } from "@/lib/format"; import type { RecentPush } from "@/lib/recent-pushes"; /** "agent/fix-login had recent pushes 5 minutes ago ยท Compare & Pull Request", for each recently pushed branch. */ export function RecentPushes({ pushes }: { pushes: RecentPush[] }) { if (pushes.length === 0) return null; return (
{pushes.map((p) => ( {p.fork ? `${p.fork.owner}:${p.branch.name}` : p.branch.name} had recent pushes {timeAgo(p.branch.date)} }> Compare & Pull Request ))}
); }