import React from 'react'; import { JSONTree, Button } from 'UI'; import cn from 'classnames'; export default class GQLDetails extends React.PureComponent { render() { const { gql: { variables, response, duration, operationKind, operationName }, nextClick, prevClick, first = false, last = false, } = this.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 (