import React from 'react'; import { JSONTree } from 'UI'; import cn from 'classnames'; interface Props { resource: any; } function GraphQLDetailsModal(props: Props) { const { resource: { variables, response, duration, operationKind, operationName }, // nextClick, // prevClick, // first = false, // last = false, } = props; let jsonVars = undefined; let jsonResponse = undefined; try { jsonVars = JSON.parse(variables); } catch (e) {} try { jsonResponse = JSON.parse(response); } catch (e) {} const dataClass = cn('p-2 bg-gray-lightest rounded color-gray-darkest'); return (