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

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

// 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 Default: ComponentStory<typeof AtomButtonDefault> = (args) => (
  <AtomButtonDefault {...args} />
);

Default.args = {
  text: "Text",
  disabled: false,
  onPress: action("Event Click"),
  color: "primary",
  width: "144px",
  customColor: "tertiary",
};
