import { JSONPath as jsonpath } from "jsonpath-plus"; import _ from "lodash"; import useTranslation from "next-translate/useTranslation"; import Link from "next/link"; import { useRouter } from "next/router"; import { connect } from "react-redux"; import { useSession } from "next-auth/react"; import { setCurrentView } from "../store/currentView/action"; import { Field, change, reduxForm } from "redux-form"; import { setCurrentSection } from "../store/appealType/action"; import { setRepresentationCapacity, setRepresentationSubmit, } from "../store/currentView/action"; const Breadcrumbs = (props) => { const { currentView, setCurrentView, setCurrentSection, setRepresentationCapacity, } = props; const router = useRouter(); let { t } = useTranslation(); const { data: session, status } = useSession(); return ( <> ); }; const mapStateToProps = (state) => { return { ...state, }; }; const mapDispatchToProps = (dispatch) => { return { updateField: (form, field, newValue) => dispatch(change(form, field, newValue)), setRepresentationCapacity: (representationCapacity) => { //dispatch(reset("representationForm")); dispatch(setRepresentationCapacity(representationCapacity)); }, setCurrentView: (currentView) => { dispatch(setCurrentView(currentView)); }, setCurrentSection: (currentSection) => { dispatch(setCurrentSection(currentSection)); }, }; }; export default connect(mapStateToProps, mapDispatchToProps)(Breadcrumbs);