chore: heygermany customer project
Some checks failed
Main / Setup and Test (push) Has been cancelled
Main / Build Website (push) Has been cancelled

This commit is contained in:
e2e
2026-07-11 10:31:48 +02:00
commit 81ea8ef5d1
394 changed files with 38048 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
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 (
<DocumentVerificationCard
candidateId={candidateId}
documents={verificationDocuments}
category={CandidateDocumentTypes.LANGUAGE}
aiExtractedData={{
level: language.aiLevel,
issuingBody: language.aiIssuingBody,
issueDate: language.aiIssueDate,
certifiedSkills: language.aiCertifiedSkills
}}
finalData={{
level: language.level,
issuingBody: language.issuingBody,
issueDate: language.issueDate,
certifiedSkills: language.certifiedSkills
}}
mutationHook={mutationHook}
verbose={verbose}
requiredFields={[
'level'
]}
/>
);
}