import React from 'react'; import Input from 'antd/lib/input'; import { EditorPropTypes } from '@/visualizations'; export default function Editor({ options, onOptionsChange }) { const onXAxisLabelChanged = (xAxisLabel) => { const newOptions = { ...options, xAxisLabel }; onOptionsChange(newOptions); }; const onYAxisLabelChanged = (yAxisLabel) => { const newOptions = { ...options, yAxisLabel }; onOptionsChange(newOptions); }; return (