import { LocalFileEntry } from '../../../api';
import { FileBrowser } from '../../files/FileBrowser';

interface FilesTabProps {
  section: 'workspace' | 'input' | 'output' | 'logs';
  currentPath: string;
  entries: LocalFileEntry[];
  pathSegments: string[];
  taskId?: number;
  onSectionChange: (section: 'workspace' | 'input' | 'output' | 'logs') => void;
  onNavigate: (path: string) => void;
  onPreview: (path: string, name: string) => void;
  onRefresh?: () => void;
  isRefreshing?: boolean;
}

export function FilesTab(props: FilesTabProps) {
  return (
    <div className="bg-white border border-slate-200 rounded-xl p-4 shadow-sm">
      <FileBrowser {...props} />
    </div>
  );
}
