import React from 'react';
import { Button as Btn } from '@/index';
import { ButtonProps } from '@/components/Button';

export default {
  title: 'components',
  component: Btn,
  args: {
    label: 'Button',
    style: {},
    width: 80,
    type: 'default',
    loading: false,
  },
};

export const Button: React.FC<ButtonProps> = ({
  label = 'Button',
  loading = false,
  style = {},
  width,
  type,
}) => {
  return (
    <Btn
      label={label}
      style={style}
      width={width}
      type={type}
      loading={loading}
    />
  );
};
