"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _vue = require("vue");
var _context = require("../context");
var _ColorPresets = _interopRequireDefault(require("./ColorPresets"));
var PanelPresets = (0, _vue.defineComponent)({
  name: 'PanelPresets',
  setup: function setup() {
    var context = (0, _context.usePanelPresetsContext)();
    return function () {
      return Array.isArray(context.value.presets) ? (0, _vue.createVNode)(_ColorPresets.default, {
        "value": context.value.value,
        "presets": context.value.presets,
        "prefixCls": context.value.prefixCls,
        "onChange": context.value.onChange
      }, null) : null;
    };
  }
});
var _default = PanelPresets;
exports.default = _default;