"use client"; import { lazy, Suspense } from "react"; import { Drawer, DrawerBody, DrawerHeader, DrawerOverlay } from "@/ui/drawer"; import type { GitSummary } from "@/features/agent/projects/types"; const LazyGitDiffPanel = lazy(() => import("@/features/agent/ui/git-diff-panel").then(({ GitDiffPanel }) => ({ default: GitDiffPanel, })), ); export function GitDiffDrawer({ cwd, gitBranch, gitSummary, onClose, }: { cwd: string | null; gitBranch?: string | null; gitSummary?: GitSummary | null; onClose: () => void; }) { return ( +{gitSummary.additions} -{gitSummary.deletions} ) : null } onClose={onClose} /> Loading diff… } > ); }