import { css } from '@emotion/css'; import React from 'react'; import { DataSourcePluginOptionsEditorProps, GrafanaTheme, updateDatasourcePluginJsonDataOption } from '@grafana/data'; import { InlineField, InlineFieldRow, InlineSwitch, useStyles } from '@grafana/ui'; import { TempoJsonData } from '../datasource'; interface Props extends DataSourcePluginOptionsEditorProps {} export function SearchSettings({ options, onOptionsChange }: Props) { const styles = useStyles(getStyles); return (

Search

) => updateDatasourcePluginJsonDataOption({ onOptionsChange, options }, 'search', { ...options.jsonData.search, hide: event.currentTarget.checked, }) } />
); } const getStyles = (theme: GrafanaTheme) => ({ container: css` label: container; width: 100%; `, row: css` label: row; align-items: baseline; `, });