Creates a field comparison component that can be used to display a comparison between two fields.
Configuration object
A JSX element representing the field comparison component
props.fields.result - Result of the comparison
Basic usage with two fields
fieldComparison({ fields: [ { field1: { label: 'Document', value: '2024-10-09', }, field2: { label: 'System', validationMessage: 'Missing value', value: '', }, name: 'Effective Date', ocrScore: 64, result: 'error', resultMessage: 'Not Matching', }, ],}); Copy
fieldComparison({ fields: [ { field1: { label: 'Document', value: '2024-10-09', }, field2: { label: 'System', validationMessage: 'Missing value', value: '', }, name: 'Effective Date', ocrScore: 64, result: 'error', resultMessage: 'Not Matching', }, ],});
Creates a field comparison component that can be used to display a comparison between two fields.