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

import { Status as StatusComponent, VARIANTS, SIZES, STYLES } from "./index.js";

const meta = {
  component: StatusComponent,
  argTypes: {
    children: {
      control: "text",
      table: {
        category: "Contents",
      },
    },
    variant: {
      control: "inline-radio",
      options: VARIANTS,
      table: {
        category: "Variant",
      },
    },
    style: {
      control: "inline-radio",
      options: STYLES,
      table: {
        category: "Variant",
      },
    },
    size: {
      control: "inline-radio",
      options: SIZES,
      table: {
        category: "Variant",
      },
    },
  },
} satisfies Meta<typeof StatusComponent>;
export default meta;

export const Status = {
  args: {
    children: "A STATUS",
    variant: "neutral",
    style: "filled",
    size: "md",
  },
} satisfies StoryObj<typeof StatusComponent>;
