import { useTranslate } from '@portal/hooks' import { ReactElement, useState } from 'react'; import JsonView from 'react18-json-view' interface RPCResponseGroupProps { response: any anchor: ReactElement customExpanded?: number, customExpandedText?: string } export const RPCResponseGroup = ({ response, anchor, customExpanded, customExpandedText }: RPCResponseGroupProps) => { const [expanded, setExpanded] = useState(1) return

{anchor}

} const RPCResponseGroupExpanders = ({ customExpanded, customExpandedText, setExpanded }) => { const { translate } = useTranslate(); return }