- {/* Left: file list (with optional footer slot pinned at bottom) */}
- {!fileListCollapsed && (
- <>
-
-
-
-
- {fileListFooterSlot && (
-
- {fileListFooterSlot}
-
- )}
-
-
- >
- )}
-
- {/* Collapse toggle (when the list is hidden) */}
- {fileListCollapsed && (
-
- )}
-
- {/* Right: selected file diff */}
-
- {selectedFile ? (
- <>
-
-
- {fileLoadState === "loading" ? (
-
- ) : fileLoadState === "error" ? (
-
- ) : isBinary ? (
-
- ) : (
-
- )}
-
- >
- ) : (
-
- )}
-
-