import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import React, { useState } from "react";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import ConfigureInterface from "./";
storiesOf("ConfigureInterface", module).add("Data Entry", function () {
  var _useState = useState({
    type: "data_entry"
  }),
      _useState2 = _slicedToArray(_useState, 2),
      iface = _useState2[0],
      changeIFace = _useState2[1];

  var dataset = {
    interface: iface
  };
  return /*#__PURE__*/React.createElement(ConfigureInterface, {
    dataset: dataset,
    onChange: function onChange() {
      action("onChange").apply(void 0, arguments);
      changeIFace(arguments.length <= 0 ? undefined : arguments[0]);
    }
  });
});