ConceptPortal-public/rsconcept/frontend/src/pages/RSFormPage/ConstituentEditor.tsx

15 lines
355 B
TypeScript
Raw Normal View History

2023-07-15 17:46:19 +03:00
import Card from '../../components/Common/Card';
import PrettyJson from '../../components/Common/PrettyJSON';
import { useRSForm } from '../../context/RSFormContext';
function ConstituentEditor() {
const { active } = useRSForm();
return (
<Card>
{active && <PrettyJson data={active}/>}
</Card>
);
}
export default ConstituentEditor;