import type { Meta, StoryObj } from "@storybook/vue3";
import type { Item } from "./CourseSessionsMenu.vue";
import CourseSessionsMenu from "./CourseSessionsMenu.vue";

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

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

const items: Item[] = [
  {
    id: "1",
    title: "Bern 2021 a",
  },
  {
    id: "2",
    title: "Bern 2021 b",
  },
  {
    id: "3",
    title: "Bern 2022 a",
  },
  {
    id: "4",
    title: "Bern 2022 b",
  },
];

export const CourseSessionsMenuStory: Story = {
  args: {
    // @ts-ignore
    items,
  },
};
