Skip to content

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

772 B
Raw Blame
import type { Meta, StoryObj } from "@storybook/react-vite";
import UpdateSeatsModal from "@editor/components/shared/UpdateSeatsModal";

/**
 * Modal for adjusting enterprise seat count, redirecting to the Stripe billing portal on confirm.
 */
const meta = {
  title: "Shared/UpdateSeatsModal",
  component: UpdateSeatsModal,
  parameters: { layout: "fullscreen" },
  args: {
    opened: true,
    onClose: () => {},
    currentSeats: 10,
    minimumSeats: 5,
  },
} satisfies Meta<typeof UpdateSeatsModal>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {};

/** Minimum seats equal to current seats, e.g. a fully-utilized license. */
export const AtMinimum: Story = {
  args: {
    currentSeats: 5,
    minimumSeats: 5,
  },
};