import React, { useEffect } from 'react' import PropTypes from 'prop-types' import ReactJson from 'react-json-view' export function SubmitFormResult(props) { const { setPopupTitle, data } = props useEffect(() => { if (setPopupTitle) { setPopupTitle('Data submitted from the form') } }) return ( <>