'use client' import type { Document, Tab } from '../_types' export function DocumentsTab({ loading, documents, setSelectedDocument, setActiveTab, }: { loading: boolean documents: Document[] setSelectedDocument: (id: string) => void setActiveTab: (t: Tab) => void }) { return (
| Typ | Name | Beschreibung | Pflicht | Erstellt | Aktionen |
|---|---|---|---|---|---|
| {doc.type} | {doc.name} | {doc.description} | {doc.mandatory ? ( Ja ) : ( Nein )} | {new Date(doc.created_at).toLocaleDateString('de-DE')} |