import { defineComponent, createVNode as _createVNode } from 'vue';
import { useInjectPanelPresets } from '../context';
import ColorPresets from './ColorPresets';
const PanelPresets = defineComponent({
  name: 'PanelPresets',
  setup() {
    const {
      prefixCls,
      value,
      presets,
      onChange
    } = useInjectPanelPresets();
    return () => Array.isArray(presets.value) ? _createVNode(ColorPresets, {
      "value": value.value,
      "presets": presets.value,
      "prefixCls": prefixCls.value,
      "onChange": onChange
    }, null) : null;
  }
});
export default PanelPresets;