import type { Meta, StoryObj } from "@storybook/react";
import { StoryContainer } from "../../utils/StoryContainer";
import type { DividerProps } from "./Divider";
import { Divider } from "./Divider";

type StoryType = StoryObj<typeof Divider>;

const meta: Meta<typeof Divider> = {
  title: "Components/Divider",
  component: Divider,
  decorators: [
    Story => (
      <StoryContainer>
        <Story />
      </StoryContainer>
    ),
  ],
};

export const Default: StoryType = {
  render: (args: DividerProps) => <Divider {...args} />,
};

export default meta;
