import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import React from "react";
import RawJSONEditor from "../RawJSONEditor";
import useDataset from "../../hooks/use-dataset";
export var DatasetJSONEditor = function DatasetJSONEditor() {
  var _useDataset = useDataset(),
      _useDataset2 = _slicedToArray(_useDataset, 2),
      dataset = _useDataset2[0],
      setDataset = _useDataset2[1];

  return /*#__PURE__*/React.createElement(RawJSONEditor, {
    key: "rawJSONEditor",
    content: dataset,
    onSave: setDataset
  });
};
export default DatasetJSONEditor;