import { RepoNav } from "@/client/components/RepoNav"; import { Card } from "@/client/components/ui/card"; import { CommitDiffExpanderIsland } from "@/client/islands/commit-diff-expander"; import { IslandHost } from "@/client/server/IslandHost"; type Parent = { oid: string; short: string; }; type DiffEntry = { path: string; changeType: "A" | "M" | "D"; oldOid?: string; newOid?: string; oldMode?: string; newMode?: string; }; type DiffSummary = { added: number; modified: number; deleted: number; total: number; }; export type CommitPageProps = { owner: string; repo: string; commitOid: string; refEnc: string; commitShort: string; authorName: string; authorEmail: string; when: string; parents: Parent[]; treeShort: string; message: string; diffBaseRefEnc: string; diffCompareMode: "root" | "first-parent"; diffEntries: DiffEntry[]; diffSummary: DiffSummary; diffTruncated: boolean; diffTruncateReason: "" | "max_files" | "max_tree_pairs" | "time_budget" | "soft_budget"; }; export function CommitPage({ owner, repo, commitOid, refEnc, commitShort, authorName, authorEmail, when, parents, treeShort, message, diffBaseRefEnc, diffCompareMode, diffEntries, diffSummary, diffTruncated, diffTruncateReason, }: CommitPageProps) { return (
{message}