import { Link } from "@tanstack/react-router"; import { panelClass } from "~/ui/Panel"; type Pinned = { number: number; title: string; state: "open" | "closed"; comments_count: number }; export function PinnedIssues({ owner, repo, issues }: { owner: string; repo: string; issues: Pinned[] }) { if (issues.length === 0) return null; return (
{issues.map((issue) => (

Pinned

{issue.title}

#{issue.number} · {issue.state} · {issue.comments_count} comments

))}
); }