// stories/MyButton.stories.tsx
import React from 'react';
import { ComponentMeta, ComponentStory } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { AtomButtonIcon } from 'native/atoms/Buttons/Icon';

export default {
  title: 'React Native/atoms/Button/Icon',
  component: AtomButtonIcon,
  argTypes: {
    onPress: {
      table: {
        disable: true
      }
    }
  },
  parameters: {
    controls: { expanded: true },
  },
} as ComponentMeta<typeof AtomButtonIcon>;

// By passing using the Args format for exported stories, you can control the props for a component for reuse in a test
// https://storybook.js.org/docs/react/workflows/unit-testing
export const Icon: ComponentStory<typeof AtomButtonIcon> = (args) => (
  <AtomButtonIcon {...args} />
);

Icon.args = {
  disabled: false,
  onPress: action('Event Click'),
  color: 'primary',
  icon: 'beer',
  iconAlign: 'right',
  customColor: 'tertiary',
  shape: 'default',
  textWeight: 'bold'
};
