import React from 'react';
import { Button } from 'antd';
import { COL_UI_PRESETS } from '../constants';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
import { Fragment as _Fragment } from "react/jsx-runtime";
const PresetsButtons = ({
  column,
  onChange
}) => /*#__PURE__*/_jsx(_Fragment, {
  children: (column[COL_UI_PRESETS] || []).map(opt => /*#__PURE__*/_jsxs("span", {
    children: [/*#__PURE__*/_jsx(Button, {
      size: "small",
      onClick: event => {
        onChange(opt, event);
      },
      children: opt
    }), ' ']
  }, opt))
});
export default PresetsButtons;
//# sourceMappingURL=PresetsButtons.js.map