import React from 'react' import { AuditLogEntry } from '../../../../providers/Config/helpers' import './LogEntry.scss' const opLabels = { EQ: 'gelijk aan', NQ: 'niet gelijk aan', GT: 'groter dan', LT: 'kleiner dan', CO: 'bevat', SW: 'begint met', EW: 'eindigt met', } const LogEntry: React.FC = ({ orderId, timestamp, entries }) => ( {entries.map((entry, index) => entry.comparisons.map((comparison) => ( {index === 0 && ( )} )), )}
{`Bestelling #${orderId}`}

{`${timestamp} UTC`}

{`${entry.fieldName} ${ opLabels[comparison.operator as keyof typeof opLabels] } ${comparison.compareValue}`}

Waarde: {entry.fieldValue}

Uitkomst:{' '} {String(comparison.result)}

) export default LogEntry