import React, { ComponentProps } from 'react'; import { action } from '@storybook/addon-actions'; import { Story } from '@storybook/react'; import Button from './Button'; import readme from '../README.md'; const MODIFIERS = [ 'success', 'info', 'danger', 'error', 'reverse', 'disabled', 'small', 'hasiconLeft', 'hasiconRight', ]; const story = { title: 'Components/Button', component: Button, parameters: { readme: { sidebar: readme, }, options: {}, }, args: { onClick: action('onClick'), }, argTypes: { classModifier: { control: { type: 'select', options: MODIFIERS }, }, }, }; export default story; type ButtonProps = ComponentProps; const Template: Story = (args) =>