import { Meta, StoryObj } from '@storybook/nextjs-vite'
import { Events } from './Events'

const meta: Meta<typeof Events> = {
  component: Events,
}

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

const events = [
  {
    title: "Event 1",
    date: "2024-01-06T15:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
  {
    title: "Event 2",
    date: "2024-01-08T19:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
  {
    title: "Event 3",
    date: "2024-01-09T12:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
  {
    title: "Event 4",
    date: "2024-01-12T10:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
  {
    title: "Event 5",
    date: "2024-01-23T09:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
  {
    title: "Event 6",
    date: "2024-02-01T14:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
  {
    title: "Event 7",
    date: "2024-03-12T18:00:00+01:00",
    location: "St Richard",
    cancelled: false,
    href: "https://some_url"
  },
];

export const Default: Story = {
  args: {
    events,
    n: 3
  },
}

export const Contrast: Story = {
  args: {
    schema: 'contrast',
    events,
    n: 3
  },
}