import { Trash2 } from 'lucide-react' import type { FileManagerState } from './useFileManager' import { FileRow } from './FileManagerRow' export function TrashView(S: FileManagerState) { const { trashFiles, can, trip, handleEmptyTrash, loadingTrash, t } = S return (
{trashFiles.length > 0 && can('file_delete', trip) && (
)} {loadingTrash ? (
) : trashFiles.length === 0 ? (

{t('files.trashEmpty') || 'Trash is empty'}

) : (
{trashFiles.map(file => )}
)}
) }