import _extends from "@babel/runtime/helpers/extends";
import React from 'react';
import { addStoryInGroup, MID_LEVEL_BLOCKS } from '../../../.storybook/utils';
import SplitButton from './SplitButton';
import MenuDivider from '../menu/MenuDivider';
import MenuItem from '../menu/MenuItem';

var handleButtonClick = function handleButtonClick() {
  console.log('clicked main button');
};

var handleMenuItemClick = function handleMenuItemClick() {
  console.log('clicked menu item');
};

export default {
  component: SplitButton,
  title: addStoryInGroup(MID_LEVEL_BLOCKS, 'Split button')
};
export var DefaultStory = function DefaultStory(args) {
  return /*#__PURE__*/React.createElement(SplitButton, _extends({}, args, {
    onButtonClick: handleButtonClick
  }), /*#__PURE__*/React.createElement(MenuItem, {
    onClick: handleMenuItemClick,
    label: "Main action"
  }), /*#__PURE__*/React.createElement(MenuItem, {
    onClick: handleMenuItemClick,
    label: "Via file upload",
    caption: "(.CVS, . XLS & .XLSX)"
  }), /*#__PURE__*/React.createElement(MenuDivider, null), /*#__PURE__*/React.createElement(MenuItem, {
    onClick: handleMenuItemClick,
    label: "Via Marketplace integrations"
  }));
};