"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"));
const PanelPresets = (0, _vue.defineComponent)({
  name: 'PanelPresets',
  setup() {
    const {
      prefixCls,
      value,
      presets,
      onChange
    } = (0, _context.useInjectPanelPresets)();
    return () => Array.isArray(presets.value) ? (0, _vue.createVNode)(_ColorPresets.default, {
      "value": value.value,
      "presets": presets.value,
      "prefixCls": prefixCls.value,
      "onChange": onChange
    }, null) : null;
  }
});
var _default = exports.default = PanelPresets;