import React from 'react'; import { SelectableValue } from '@grafana/data'; import { InlineField, InlineFieldRow, Select } from '@grafana/ui'; import { EditorProps } from '../QueryEditor'; export const CSVFileEditor = ({ onChange, query }: EditorProps) => { const onChangeFileName = ({ value }: SelectableValue) => { onChange({ ...query, csvFileName: value }); }; const files = [ 'flight_info_by_state.csv', 'population_by_state.csv', 'gdp_per_capita.csv', 'js_libraries.csv', 'ohlc_dogecoin.csv', 'weight_height.csv', 'browser_marketshare.csv', ].map((name) => ({ label: name, value: name })); return (