import React from "react";
import { Meta, Story } from "@storybook/react";
import { AtomCheckbox, ICheckboxProps } from "native/atoms/Checkbox";
import { action } from "@storybook/addon-actions";

const meta: Meta = {
  title: "React Native/atoms/Checkbox",
  component: AtomCheckbox,
  argTypes: {
    onChange: {
      control: false,
      table: {
        disable: true,
      },
    },
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateCheckbox: Story<ICheckboxProps> = (props) => (
  <AtomCheckbox {...props} />
);

export const Checkbox = TemplateCheckbox.bind({});

Checkbox.args = {
  onChange: action("Event Click"),
  checked: true,
  disabled: false,
};
