import { Card } from '@/components/ui/card'; import { Folder, Music, Image as ImageIcon, File, CheckSquare, Square } from 'lucide-react'; import type { FileNode } from './types'; import { cn } from '@/lib/utils'; interface FileManagerViewGridProps { files: FileNode[]; selectedIds: string[]; onToggleSelect: (id: string) => void; onFileClick: (file: FileNode) => void; } function FileTypeIcon({ type, size = 'md' }: { type: FileNode['type']; size?: 'md' | 'lg' }) { const cl = size === 'lg' ? 'w-8 h-8' : 'w-5 h-5'; if (type === 'folder') return ; if (type === 'audio') return ; if (type === 'image') return ; if (['document', 'archive', 'project'].includes(type)) { return ; } return ; } export function FileManagerViewGrid({ files, selectedIds, onToggleSelect, onFileClick, }: FileManagerViewGridProps) { return (
{files.map((file) => ( onFileClick(file)} >

{file.name}

{file.size}

))}
); }