import type { ReactNode } from 'react'; import { CommitCard } from '@/components/commit-card'; import { CommitSkeleton, EmptyFeed } from '@/components/commit-feed'; import { GraphCanvas } from '@/components/graph-canvas'; import type { Commit } from '@/types'; export type SearchResultSet = { term: string; commits: Commit[] }; export function SearchResults({ results, isWaiting = false, heading = 'Most relevant commits', empty = 'Try describing the idea in other words, or pick one of the searches below.', isStandalone = false, }: { results: SearchResultSet | null; isWaiting?: boolean; heading?: string; empty?: ReactNode; isStandalone?: boolean; }) { if (results === null) { return (