import { BookOpen, GitBranch, Tag } from "lucide-react"; import { MarkdownContent } from "@/client/components/MarkdownContent"; import { type Progress, ProgressBanner } from "@/client/components/ProgressBanner"; import { RepoNav } from "@/client/components/RepoNav"; import { Card } from "@/client/components/ui/card"; import { EmptyState } from "@/client/components/EmptyState"; type RefLink = { name: string; displayName: string; }; export type OverviewPageProps = { owner: string; repo: string; refShort: string; refEnc: string; branches: RefLink[]; tags: RefLink[]; readmeMd?: string; progress?: Progress; }; export function OverviewPage({ owner, repo, refShort, refEnc, branches, tags, readmeMd, progress, }: OverviewPageProps) { return ( <>
{/* Left column: Refs */}

Default: {refShort}

{branches.length ? ( branches.map((branch) => ( )) ) : (

{tags.length ? ( tags.map((tag) => ( )) ) : (
{/* Right column: README */}
{readmeMd ? ( ) : ( )}
); }