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(payload); } catch (e) {} try { jsonResponse = JSON.parse(response); } catch (e) {} return (