import React from 'react'
import { Meta } from '@storybook/react/types-6-0'
import { Story } from '@storybook/react'
import { DownloadData,DownloadDataProps } from './DownloadData'

export default {
  title: 'Components/DownloadData',
  component: DownloadData,
  argTypes: {},
} as Meta

const Template: Story<DownloadDataProps> = (args) => <DownloadData {...args} />

export const Excel = Template.bind({})
Excel.args = { data:[{ A:1,B:2 },{ A:2,B:3 }], filename:'myexcel', filetype:'xlsx' }

export const Csv = Template.bind({})
Csv.args = { data:[{ A:1,B:2 },{ A:2,B:3 }], filename:'mycsv', filetype:'csv' }