import { fmtDate } from '../../lib/format.js' import { typeInfo } from '../../lib/constants.js' import EvidenceHash from './EvidenceHash.jsx' const HEADERS = { auto_confirmed: 'AUTOMATED e-CHALLAN (DRAFT)', vlm_confirmed: 'AUTOMATED e-CHALLAN (DRAFT)', human_review: 'e-CHALLAN — PENDING REVIEW', abstain: 'e-CHALLAN — NOT ISSUED (ABSTAINED)', } export default function EChallanCard({ v }) { const t = typeInfo(v.type) const dispo = (v.review_status && v.review_status !== '' ? v.review_status : v.route) || v.route return (