import React from 'react';
import LinkEditor from '.';
import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
import { CdpContext } from '@zgfe/modules-cdp';
import DemoWrapper from '../demo';
export default (function () {
  return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement(CdpContext.Consumer, null, function (_ref) {
    var categoryList = _ref.categoryList;
    if (!(categoryList === null || categoryList === void 0 ? void 0 : categoryList.length)) return /*#__PURE__*/React.createElement("div", null, "\u6682\u65E0\u6570\u636E");
    return /*#__PURE__*/React.createElement("div", {
      style: {
        background: '#F5F5F5',
        padding: '16px'
      }
    }, /*#__PURE__*/React.createElement(LinkEditor, {
      category: categoryList[0]
    }));
  }));
});