import Link from "next/link"; import { Card } from "@unlocalhosted/metalui"; import type { RepoRecord } from "@/lib/repos"; import { timeAgo } from "@/lib/format"; import { ClockIcon, LockIcon, RepoIcon } from "./icons"; import { CardDescription, CardTitle } from "./metal"; import { RepoAvatar, VisibilityLabel } from "./ui"; export type RepoListItem = RepoRecord & { updatedAt: number; empty: boolean }; /** 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 ( ); } export function RepoIconFor({ visibility }: { visibility: "public" | "private" }) { return visibility === "private" ? : ; }