import React from "react";
import { Meta, Story } from "@storybook/react";
import {
  AtomCardContainer,
  ICardContainerProps,
} from "native/atoms/CardContainer";
import { theme } from "data/dataMx";

const meta: Meta = {
  title: "React Native/atoms",
  component: AtomCardContainer,
  argTypes: {
    margin: { table: { disable: true } },
    padding: { table: { disable: true } },
    flexDirection: { table: { disable: true } },
    alignItems: { table: { disable: true } },
    alignContent: { table: { disable: true } },
    justifyContent: { table: { disable: true } },
    bgColor: {
      control: {
        type: "select",
      },
      options: Object.keys(theme),
    },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateCardContainer: Story<ICardContainerProps> = (props) => (
  <AtomCardContainer {...props} />
);

export const CardContainer = TemplateCardContainer.bind({});

CardContainer.args = {
  height: "200px",
  width: "560px",
};
