import React from "react";
import { Meta, Story } from "@storybook/react";
import { AtomIcon, IIconProps } from "native/atoms/Icon";
import { theme } from "data/dataMx";

const meta: Meta = {
  title: "React Native/atoms/Icon",
  component: AtomIcon,
  argTypes: {
    color: {
      control: {
        type: "select",
      },
      options: Object.keys(theme),
    },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateIcon: Story<IIconProps> = (props) => <AtomIcon {...props} />;

export const Icon = TemplateIcon.bind({});

Icon.args = {
  name: "diamond",
  size: 65,
};
