import React from 'react';
import { Meta, Story } from '@storybook/react';
import { Table } from '../../index';
import description from './Table.md';
import { TableProps } from './Table';

const meta: Meta = {
  title: 'Components/Table',
  component: Table,
  parameters: {
    docs: {
      description: {
        component: description,
      },
    },
  },
  argTypes: {
    children: {
      table: {
        disable: true,
      },
    },
    className: {
      type: 'string',
    },
  },
};

export default meta;

const Template: Story<TableProps> = (args) => <Table {...args}>Table</Table>;

export const Default = Template.bind({});

Default.args = {
  ...Table.defaultProps,
};
