import Link from "next/link"; import { Card } from "@unlocalhosted/metalui"; import type { ForkParent, RepoRecord } from "@/lib/repos"; import { timeAgo } from "@/lib/format"; import { ClockIcon, LockIcon, RepoIcon } from "./icons"; import { ForkedFrom, ForkLabel } from "./forks"; import { CardDescription, CardTitle } from "./metal"; import { RepoAvatar, VisibilityLabel } from "./ui"; export type RepoListItem = RepoRecord & { updatedAt: number; empty: boolean; parent: ForkParent | null }; /** Repositories as MetalUI cards: the title is the card's one link, so the whole plate goes to the repository. */ export function RepoList({ repos, showOwner = true }: { repos: RepoListItem[]; showOwner?: boolean }) { return (