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
{file.size}