import { DocumentVerificationCard } from './DocumentVerificationCard'; import { useUpdateCandidateLanguage } from '@/hooks/backoffice/useUpdateCandidateLanguage'; import { CandidateDocumentTypes, DocumentStatuses } from '@heygermany/sdk'; type LanguageVerificationCardProps = { candidateId: string; language: any; documents?: any[]; verbose?: boolean; }; export function LanguageVerificationCard({ candidateId, language, documents = [], verbose = false }: LanguageVerificationCardProps) { const mutationHook = useUpdateCandidateLanguage(candidateId); const verificationDocuments = documents .map((document, index) => ({ documentId: document.documentId, documentStatus: document.documentStatus ?? DocumentStatuses.UNVERIFIED, label: document.fileName || `File ${index + 1}` })); return ( ); }