// stories/MyButton.stories.tsx
import React from "react";
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import { AtomButtonBack } from "native/atoms/Buttons/Back";
import { theme } from "data/dataMx";
export default {
  title: "React Native/atoms/Button/Back",
  component: AtomButtonBack,
  argTypes: {
    onPress: {
      table: {
        disable: true,
      },
    },
    arrowColor: {
      control: {
        type: "select",
      },
      options: Object.keys(theme),
    },
  },
  parameters: {
    controls: { expanded: true },
  },
} as ComponentMeta<typeof AtomButtonBack>;

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

Back.args = {
  text: "Back to rewards",
  disabled: false,
  onPress: action("Event Click"),
  minWidth: "100px",
  width: "150px",
};
