import type { Meta, StoryObj } from "@storybook/react-vite";
import { CommissionerDraftControls } from "./CommissionerDraftControls";

const meta: Meta<typeof CommissionerDraftControls> = {
  title: "Draft/CommissionerDraftControls",
  component: CommissionerDraftControls,
  parameters: {
    layout: "padded",
  },
};

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

export const PreDraft: Story = {
  args: {
    seasonStatus: "pre_draft",
    isDraftComplete: false,
    isPaused: false,
    onStart: () => {},
    onPause: () => {},
    onResume: () => {},
  },
};

export const DraftActive: Story = {
  args: {
    seasonStatus: "draft",
    isDraftComplete: false,
    isPaused: false,
    onStart: () => {},
    onPause: () => {},
    onResume: () => {},
  },
};

export const DraftPaused: Story = {
  args: {
    seasonStatus: "draft",
    isDraftComplete: false,
    isPaused: true,
    onStart: () => {},
    onPause: () => {},
    onResume: () => {},
  },
};

export const DraftComplete: Story = {
  name: "Draft Complete (renders null)",
  args: {
    seasonStatus: "draft",
    isDraftComplete: true,
    isPaused: false,
    onStart: () => {},
    onPause: () => {},
    onResume: () => {},
  },
};
