import _extends from "@babel/runtime/helpers/extends";
import { getDataFromPlainText } from "./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 = getDataFromPlainText(plainData),
  children = _getDataFromPlainText.children,
  selectedKeys = _getDataFromPlainText.selectedKeys;
var menuProps = {
  plainData: plainData
};
if (selectedKeys && selectedKeys.length) {
  menuProps.selectedKeys = selectedKeys;
}
export default [{
  title: '菜单',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_dialog.png',
  schema: {
    componentName: 'Menu',
    props: _extends({}, menuProps),
    children: children
  }
}];