import React from 'react' import { ComponentMeta, ComponentStory } from '@storybook/react' import Icon from 'semantic-ui-react/dist/commonjs/elements/Icon' import Popup from 'semantic-ui-react/dist/commonjs/modules/Popup' import TableContainer from './TableContainer' import { TableContent } from './TableContent' export default { title: 'V2/Table', component: TableContainer } as ComponentMeta const Template: ComponentStory = (args) => ( ) export const Basic = Template.bind({}) Basic.args = { children: ( TEST 1 }, { column1: 'test2', column2: (
TEST2
) } ]} activePage={1} isLoading={false} setPage={() => console.log('setPage')} totalPages={2} empty={() => null} total={10} hasHeaders /> ), tabsList: [ { displayValue: 'Tab1', value: 'tab1' }, { displayValue: 'Tab2', value: 'tab2' } ], sortbyList: [], handleSortByChange: (value: string) => console.log('sortBy', value), sortBy: '' } export const CustomHeaders = Template.bind({}) CustomHeaders.args = { children: ( TEST 1 }, { column1: 'test2', column2: (
TEST2
) } ]} customHeaders={{ column1: 'My Column 1', column2: ( Col 2 } on="hover" /> ) }} activePage={1} isLoading={false} setPage={() => console.log('setPage')} totalPages={2} empty={() => null} total={10} hasHeaders /> ), tabsList: [ { displayValue: 'Tab1', value: 'tab1' }, { displayValue: 'Tab2', value: 'tab2' } ], sortbyList: [], handleSortByChange: (value: string) => console.log('sortBy', value), sortBy: '' }