import type { Meta, StoryObj } from "@storybook/react";

import { DataImporter } from ".";

const meta: Meta<typeof DataImporter> = {
  title: "Example/DataImporter",
  component: DataImporter,
};

type Story = StoryObj<typeof DataImporter>;

export const Primary: Story = {
  render: () => (
    <DataImporter
      tableId={"TableID"}
      table={{
        columns: {
          created_at: "Created At",
          updated_at: "Updated At",
          fakeColumn3: "Fake Column 3",
          fakeColumn4: "Fake Column 4",
          fakeColumn5: "Fake Column 5",
          fakeColumn6: "Fake Column 6",
          fakeColumn7: "Fake Column 7",
        },
      }}
    />
  ),
};

export default meta;
