import { useCallback } from 'react'; import { StandardEditorProps, SelectableValue } from '@grafana/data'; import { GraphThresholdsStyleMode } from '@grafana/schema'; import { Select } from '@grafana/ui'; type Props = StandardEditorProps< SelectableValue<{ mode: GraphThresholdsStyleMode }>, { options: Array> } >; export const ThresholdsStyleEditor = ({ item, value, onChange, id }: Props) => { const onChangeCb = useCallback( (v: SelectableValue) => { onChange({ mode: v.value, }); }, [onChange] ); return