import React from "react";
import { Meta, Story } from "@storybook/react";
import {
  OrganismsTierLevel,
  ITierLevelProps,
} from "native/organisms/TierLevel";
import { action } from "@storybook/addon-actions";
import { theme } from "data/dataMx";

const meta: Meta = {
  title: "React Native/organisms/TierLevel",
  component: OrganismsTierLevel,
  argTypes: {
    colorProgress: {
      control: {
        type: "select",
      },
      options: Object.keys(theme),
    },
    handleClick: {
      table: {
        disable: true,
      },
    },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateTierLevel: Story<ITierLevelProps> = (props) => (
  <OrganismsTierLevel {...props} />
);

export const TierLevel = TemplateTierLevel.bind({});

TierLevel.args = {
  type: "mobile",
  iconName: "tier_silver",
  actualPoints: 1360,
  nextPoints: 5000,
  actualTier: 'Silver Tier',
  nextTier: 'pts to Gold',
  colorProgress: 'quaternary500',
  totalTierPoints: 2000,
  handleClick: () => alert('Event Click'),
};
