import tableConfig from '../lib/config/table';
import InsTable from './index';

export default {
  title: 'Components/Calculation/ELT/Kasko',
  component: InsTable,
};

const Template = args => <InsTable {...args} />;

const dataSource = [
  {
    key: '1',
    evo_id_elt: 'Alfa',
    name: 'Альфа',
    sumTitle: 'Премия по договору',
    premiumSum: 55555,
    message: 'Комментарий альфы',
    children: [
      {
        key: '1',
        sumTitle: 'КАСКО',
        premiumSum: 1111,
      },
      {
        key: '1',
        sumTitle: 'ДГО',
        premiumSum: 4444,
      },
      {
        key: '1',
        sumTitle: 'НС',
        premiumSum: 8888,
      },
    ],
  },
];

export const WithData = Template.bind({});
WithData.args = {
  tableConfig,
  dataSource,
};
