export function genCarnet(d: { fullname: string, dni: string, code: string, expiryMonth: string, expiryYear: string, qrBase64: string, }) { const { fullname, dni, code, expiryMonth, expiryYear, qrBase64 } = d; return ` ${fullname.toUpperCase()} DNI: ${dni} ${code}-${expiryYear}-EEG ${code}-${expiryYear}-EEG ${expiryMonth.toUpperCase()} ${parseInt(expiryYear, 10) + 1} `; }