import { GitBranch } from 'lucide-react'; import { ReportSection } from '../ReportSection'; import type { ReportGitActivity } from '@renderer/types/sessionReport'; interface GitSectionProps { data: ReportGitActivity; } export const GitSection = ({ data }: GitSectionProps) => { return (
Commits
{data.commitCount}
Pushes
{data.pushCount}
Lines Added
+{data.linesAdded.toLocaleString()}
Lines Removed
-{data.linesRemoved.toLocaleString()}
{data.commits.length > 0 && (
Commits
{data.commits.map((commit, idx) => (
#{commit.messageIndex} {commit.messagePreview}
))}
)} {data.branchCreations.length > 0 && (
Branches Created
{data.branchCreations.map((branch, idx) => ( {branch} ))}
)}
); };