// Libraries import React, { PureComponent } from 'react'; import { PanelEditorProps, ThresholdsEditor, Threshold, PanelOptionsGrid, ValueMappingsEditor, ValueMapping, } from '@grafana/ui'; import { SingleStatOptions, SingleStatValueOptions } from './types'; import { SingleStatValueEditor } from './SingleStatValueEditor'; export class SingleStatEditor extends PureComponent> { onThresholdsChanged = (thresholds: Threshold[]) => this.props.onOptionsChange({ ...this.props.options, thresholds, }); onValueMappingsChanged = (valueMappings: ValueMapping[]) => this.props.onOptionsChange({ ...this.props.options, valueMappings, }); onValueOptionsChanged = (valueOptions: SingleStatValueOptions) => this.props.onOptionsChange({ ...this.props.options, valueOptions, }); render() { const { options } = this.props; return ( <> ); } }