'use client'
import { useTheme } from '@/lib/ThemeContext'
import { DocumentSpace } from '@/components/DocumentSpace'
interface StoredDocument {
id: string
name: string
type: string
size: number
uploadedAt: Date
url?: string
}
interface DocumentsTabProps {
documents: StoredDocument[]
onDelete: (id: string) => void
onRename: (id: string, newName: string) => void
setShowUploadModal: (show: boolean) => void
setShowQRModal: (show: boolean) => void
}
export function DocumentsTab({ documents, onDelete, onRename, setShowUploadModal, setShowQRModal }: DocumentsTabProps) {
const { isDark } = useTheme()
return (
{/* Upload-Optionen */}
{/* Document Space */}
Meine Dokumente
doc.url && window.open(doc.url, '_blank')}
/>
)
}