import React from "react";
import { Meta, Story } from "@storybook/react";
import { AtomDivider, IDividerProps } from "native/atoms/Divider";
import { theme } from "data/dataMx";

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

export default meta;

const TemplateDivider: Story<IDividerProps> = (props) => (
  <AtomDivider {...props} />
);

export const Divider = TemplateDivider.bind({});

Divider.args = {
  isInvisible: false,
};
