import { ChevronDown, ChevronRight } from 'lucide-react'; import type { GitCommitSummary } from '../../types/types'; import GitDiffViewer from '../shared/GitDiffViewer'; type CommitHistoryItemProps = { commit: GitCommitSummary; isExpanded: boolean; diff?: string; isMobile: boolean; wrapText: boolean; onToggle: () => void; }; export default function CommitHistoryItem({ commit, isExpanded, diff, isMobile, wrapText, onToggle, }: CommitHistoryItemProps) { return (
{isExpanded && diff && (
{commit.stats}
)}
); }