import type { Meta, StoryObj } from "@storybook/react";
import type { ImageProps } from "./Image";
import { Image } from "./Image";
import testImg from "./test-image.png";

type StoryType = StoryObj<typeof Image>;

const meta: Meta<typeof Image> = {
  title: "Components/Image",
  component: Image,
};

export const Default: StoryType = {
  render: (args: ImageProps) => <Image {...args} />,
  args: {
    src: testImg,
    alt: "test image",
  },
};

export default meta;
