"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _adaptor = require("./adaptor");
var plainData = '#Group1\noption1\n*option2\n\tsub option3\n\t-sub option4\n\tsub option5\n---\n#Group2\noption1\n*option2';
var _getDataFromPlainText = (0, _adaptor.getDataFromPlainText)(plainData),
  children = _getDataFromPlainText.children,
  selectedKeys = _getDataFromPlainText.selectedKeys;
var menuProps = {
  plainData: plainData
};
if (selectedKeys && selectedKeys.length) {
  menuProps.selectedKeys = selectedKeys;
}
var _default = [{
  title: '菜单',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_dialog.png',
  schema: {
    componentName: 'Menu',
    props: (0, _extends2["default"])({}, menuProps),
    children: children
  }
}];
exports["default"] = _default;