import React, { Component } from 'react'; import { PanelProps } from '@grafana/data'; import { CursorView } from './CursorView'; import { EventBusLoggerPanel } from './EventBusLogger'; import { RenderInfoViewer } from './RenderInfoViewer'; import { StateView } from './StateView'; import { DebugPanelOptions, DebugMode } from './types'; type Props = PanelProps; export class DebugPanel extends Component { render() { const { options } = this.props; switch (options.mode) { case DebugMode.Events: return ; case DebugMode.Cursor: return ; case DebugMode.State: return ; case DebugMode.ThrowError: throw new Error('I failed you and for that i am deeply sorry'); default: return ; } } }