-
- {expanded && (
-
- {backlinks.map(({ entry, context }) => (
-
- ))}
-
- )}
+
+
+ Backlinks
+
+
+ {backlinks.map(({ entry, context }) => (
+
+ ))}
+
)
}
diff --git a/src/components/inspector/GitHistoryPanel.tsx b/src/components/inspector/GitHistoryPanel.tsx
index 8ecf23ce..8ded1326 100644
--- a/src/components/inspector/GitHistoryPanel.tsx
+++ b/src/components/inspector/GitHistoryPanel.tsx
@@ -1,3 +1,4 @@
+import { ArrowCounterClockwise } from '@phosphor-icons/react'
import type { GitCommit } from '../../types'
function formatRelativeDate(timestamp: number): string {
@@ -11,26 +12,32 @@ function formatRelativeDate(timestamp: number): string {
}
export function GitHistoryPanel({ commits, onViewCommitDiff }: { commits: GitCommit[]; onViewCommitDiff?: (commitHash: string) => void }) {
+ if (commits.length === 0) return null
+
return (