import { StoryObj } from '@storybook/react-vite'; import { Table } from "./"; const meta = { title: "Table", component: Table, parameters: { docs: { description: { component: "Um componente de tabela responsivo.", }, }, }, tags: ["autodocs"], }; export default meta; type Story = StoryObj; const header = Array(6).fill("Header"); const body = Array(6).fill({ cell1: "Data Label", cell2: "Data Label", cell3: "Data Label", cell4: "Data Label", cell5: "Data Label", cell6: "Data Label", }); export const TableStory: Story = { name: "Table", render: () => ( {header.map((item, index) => ( {item} ))} {body.map((item, index) => ( {item.cell1} {item.cell2} {item.cell3} {item.cell4} {item.cell5} {item.cell6} ))} ), };