'use client' import { useRef } from 'react' import { FolderOpen, Upload, RefreshCw } from 'lucide-react' import { cn } from '@/lib/utils' import type { FileItem } from './FileRow' import FileTable from './FileTable' interface FileExplorerContainerProps { selectedDeviceName: string | null currentPath: string files: FileItem[] onFolderClick?: (name: string) => void onRefresh?: () => void onUpload?: () => void } export default function FileExplorerContainer({ selectedDeviceName, currentPath, files, onFolderClick, onRefresh, onUpload, }: FileExplorerContainerProps) { const pathRef = useRef(null) const hasDevice = !!selectedDeviceName return (
{currentPath}
{!hasDevice ? (

Selecciona un dispositivo para explorar archivos

) : ( )}
) }