Files
Termix/src/ui/Desktop/Apps/File Manager/FileManager.tsx
T
ZacharyZcR dcce5d1eec Remove legacy file manager view toggle - simplify architecture
- Eliminated useModernView state and all related switching logic
- Removed overlapping view toggle buttons that interfered with UI
- FileManager now directly renders FileManagerModern component
- Significantly reduced bundle size from 3MB to 1.4MB
- Modern file manager is now the only interface with full features:
  * Grid and list view modes
  * SSH connection management
  * Drag-and-drop uploads
  * Context menus and file operations
  * Navigation history

The legacy view is no longer needed as the modern view provides
all functionality with better UX and performance.
2025-09-16 17:08:44 +08:00

20 lines
489 B
TypeScript

import React from "react";
import { FileManagerModern } from "@/ui/Desktop/Apps/File Manager/FileManagerModern.tsx";
import type { SSHHost } from "../../../types/index.js";
export function FileManager({
initialHost = null,
onClose,
}: {
onSelectView?: (view: string) => void;
embedded?: boolean;
initialHost?: SSHHost | null;
onClose?: () => void;
}): React.ReactElement {
return (
<FileManagerModern
initialHost={initialHost}
onClose={onClose}
/>
);
}