import { useTranslation } from "react-i18next"; import { ChevronDown, ChevronRight } from "lucide-react"; import { I18nKey } from "#/i18n/declaration"; import { AccordionPanel } from "./accordion-panel"; import { DiffChangeList, type DiffChangeListItem } from "./diff-change-list"; const EMPTY_COMMIT_SHA_PLACEHOLDER = "-"; /** Base key for i18next pluralization (`_one` / `_other` suffixes). */ const UNCOMMITTED_FILE_COUNT_I18N_KEY = "DIFF_VIEWER$UNCOMMITTED_FILE_COUNT"; export interface UncommittedChangesRowProps { changes: DiffChangeListItem[]; isExpanded: boolean; onToggle: () => void; } /** * Top accordion row in the Commits pane for working-tree changes that * are not yet associated with a commit. Same single-open accordion * contract as CommitRow. */ export function UncommittedChangesRow({ changes, isExpanded, onToggle, }: UncommittedChangesRowProps) { const { t } = useTranslation("openhands"); return (
{changes.length > 0 ? : null}
); }