import React from 'react';
import { Input, InlineFieldRow, InlineField, Select } from '@grafana/ui';
import { NodesQuery, TestDataQuery } from '../types';
export interface Props {
onChange: (value: NodesQuery) => void;
query: TestDataQuery;
}
export function NodeGraphEditor({ query, onChange }: Props) {
const type = query.nodes?.type || 'random';
return (
{type === 'random' && (
onChange({ ...query.nodes, count: e.currentTarget.value ? parseInt(e.currentTarget.value, 10) : 0 })
}
placeholder="10"
/>
)}
);
}
const options: Array = ['random', 'response'];