import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { OPMenuButton, OPButton } from '../../src/index';

export default {
  title: '组件/通用/OPMenuButton',
  component: OPMenuButton,
} as ComponentMeta<typeof OPMenuButton>;

export const 按钮: ComponentStory<typeof OPMenuButton> = (): JSX.Element => {
  return (
    <OPMenuButton label='更多'>
      <OPButton size='small'>删除商品</OPButton>
      <OPButton size='small'>清空容器</OPButton>
    </OPMenuButton>
  );
};
