import React from "react"; import { Section, Input } from "@/components/visualizations/editor"; import { EditorPropTypes } from "@/visualizations/prop-types"; 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 (
onXAxisLabelChanged(event.target.value)} />
onYAxisLabelChanged(event.target.value)} />
); } Editor.propTypes = EditorPropTypes;