import type { Meta, StoryObj } from "@storybook/react"; import { Table } from "../src/components/Table/Table"; import "./Table.stories.css"; import { StateCell } from "../src/components/Table/StateCell"; import { ActionCell } from "../src/components/Table/ActionCell"; import { BreakCell } from "../src/components/Table/BreakCell"; const meta = { title: "Components/Table", component: Table, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: {}, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { cells: [ [ Ox45678FDGHJKLBSA21, My file, Some data, console.info("Hello")} >, ], ], headers: ["id", "title", "other", "actions"], }, }; export const Scroll: Story = { args: { className: "tableSmall", cells: [ [ Ox45678FDGHJKLBSA21, My file, Some data, console.info("Hello")} >, ], ], headers: ["id", "title", "other", "actions"], }, }; export const BreakableCell: Story = { args: { cells: [ [ , My file, Some data, console.info("Hello")} >, ], ], headers: ["break", "title", "other", "actions"], className: "tableSmall", }, }; export const State: Story = { args: { cells: [ [ , My file, , console.info("Hello")} >, ], ], headers: ["id", "title", "state", "actions"], }, }; export const Empty: Story = { args: { cells: [], headers: ["id", "title", "state", "actions"], }, };