import {Meta, StoryObj} from '@storybook/react';

import Checkbox, {CheckboxProps} from './index';

const meta: Meta<typeof Checkbox> = {
  title: 'Checkbox',
  component: Checkbox,
  argTypes: {
    color: {control: 'color'},
  },
};

const COMMON_ARGS = {
  title: 'Checkbox',
  checked: false,
  size: 24,
  disabled: false,
  color: '#000000',
};

export const CheckboxComponent: StoryObj<CheckboxProps> = {
  args: COMMON_ARGS,
};

export const CheckboxRadio: StoryObj<CheckboxProps> = {
  args: {
    ...COMMON_ARGS,
    radio: true,
  },
};

export default meta;
