import Link from "next/link"; import type { ForkParent } from "@/lib/repos"; import { ForkIcon } from "./icons"; import { Label } from "./ui"; /** Marks a repository as a fork. */ export function ForkLabel() { return ( ); } /** "forked from alice/app", linked; `parent` is null when the viewer can't see that repository. */ export function ForkedFrom({ parent, className = "" }: { parent: ForkParent | null; className?: string }) { return ( forked from{" "} {parent ? ( {parent.owner}/{parent.name} ) : ( "a repository you can't see" )} ); }