import { JSONPath as jsonpath } from "jsonpath-plus"; import useTranslation from "next-translate/useTranslation"; import { useRouter } from "next/router"; import { connect } from "react-redux"; import xpath from "xpath"; import { setCurrentSection } from "../../store/appealType/action"; import { FieldsTranslations } from "../elements"; import { getProgressObj } from "../utils"; const BuildProgress = (props) => { let { t } = useTranslation(); const router = useRouter(); const { locale } = router; const { progObj, titleList, currentSection, documentListObj, formObjXML, mandatoryFieldsData, gotoSection, setCurrentSection, } = props; const parser = new DOMParser(); // const progObj = getProgressObj( // formObjXML, // titleList, // mandatoryFieldsData, // props // ); //console.log(progObj); return ( <> {Object.keys(documentListObj).length > 0 && (