"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _adaptor = require("../split-button/adaptor");
var plainData = 'Edit Document\n\tUndo\n\tRedo\n\tCut\n\tCopy\n\tPaste';
var _getDataFromPlainText = (0, _adaptor.getDataFromPlainText)(plainData),
  label = _getDataFromPlainText.label,
  children = _getDataFromPlainText.children,
  selectedKeys = _getDataFromPlainText.selectedKeys;
var splitButtonProps = {
  prefix: 'next-',
  type: 'normal',
  size: 'medium',
  label: label,
  defaultSelectedKeys: [],
  autoWidth: true,
  popupTriggerType: 'click',
  plainData: plainData
};
if (selectedKeys && selectedKeys.length) {
  splitButtonProps.selectedKeys = selectedKeys;
}
var menuButtonProps = splitButtonProps;
var snippets = [{
  title: '按钮',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_button.png',
  schema: {
    componentName: 'Button',
    props: {
      prefix: 'next-',
      type: 'normal',
      size: 'medium',
      htmlType: 'button',
      component: 'button',
      children: '取消'
    }
  }
}, {
  title: '分隔按钮',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_split-button.png',
  schema: {
    componentName: 'SplitButton',
    props: splitButtonProps,
    children: children
  }
}, {
  title: '菜单按钮',
  screenshot: 'https://alifd.oss-cn-hangzhou.aliyuncs.com/fusion-cool/icons/icon-light/ic_light_menu-button.png',
  schema: {
    componentName: 'MenuButton',
    props: menuButtonProps,
    children: children
  }
}];
var _default = snippets;
exports["default"] = _default;