Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

940 B
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";
import { documentsFor } from "@processor/mocks/documents";
import { ReviewQueueTable } from "@processor/components/documents/ReviewQueueTable";
import "@processor/views/Documents.css";

const DOCS = documentsFor("enterprise");

const meta: Meta<typeof ReviewQueueTable> = {
  title: "Portal/Documents/ReviewQueueTable",
  component: ReviewQueueTable,
  parameters: { layout: "padded" },
  args: { documents: DOCS, onRowClick: () => {} },
  decorators: [
    (S) => (
      <div style={{ maxWidth: "80rem" }}>
        <S />
      </div>
    ),
  ],
};
export default meta;
type Story = StoryObj<typeof ReviewQueueTable>;

export const Default: Story = {};

/** Only the rows that need a human decision. */
export const NeedsReview: Story = {
  args: {
    documents: DOCS.filter((d) => d.status === "flagged"),
  },
};

export const Empty: Story = {
  args: { documents: [] },
};