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

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

export default meta
type Story = StoryObj<typeof meta>

export const Default: Story = {
  args: {
    locations: [
      {
        id: 'clara',
        name: 'St. Clara',
        masses: [
          {
            id: '1',
            date: '2024-08-21T15:00:00.000Z',
            location: 'St. Clara',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '2',
            date: '2024-08-23T18:00:00.000Z',
            location: 'St. Clara',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '3',
            date: '2024-08-24T09:00:00.000Z',
            location: 'St. Clara',
            type: 'WORD',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'christopherus',
        name: 'St. Christopherus',
        masses: [
          {
            id: '4',
            date: '2024-08-22T10:00:00.000Z',
            location: 'St. Christopherus',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '5',
            date: '2024-08-25T17:00:00.000Z',
            location: 'St. Christopherus',
            type: 'FAMILY',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '6',
            date: '2024-08-26T15:00:00.000Z',
            location: 'St. Christopherus',
            type: 'MASS',
            cancelled: true,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'marien',
        name: 'St. Marien',
        masses: [
          {
            id: '7',
            date: '2024-08-23T11:00:00.000Z',
            location: 'St. Marien',
            type: 'LANGUAGE',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '8',
            date: '2024-08-24T19:00:00.000Z',
            location: 'St. Marien',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
    ],
  },
}

export const SingleLocation: Story = {
  args: {
    locations: [
      {
        id: 'clara',
        name: 'St. Clara',
        masses: [
          {
            id: '1',
            date: '2024-08-21T15:00:00.000Z',
            location: 'St. Clara',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '2',
            date: '2024-08-23T18:00:00.000Z',
            location: 'St. Clara',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
    ],
  },
}

export const Empty: Story = {
  args: {
    locations: [],
  },
}

export const SevenChurches: Story = {
  args: {
    locations: [
      {
        id: 'clara',
        name: 'St. Clara',
        masses: [
          {
            id: '1',
            date: '2024-08-21T15:00:00.000Z',
            location: 'St. Clara',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '2',
            date: '2024-08-24T09:00:00.000Z',
            location: 'St. Clara',
            type: 'WORD',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'christopherus',
        name: 'St. Christopherus',
        masses: [
          {
            id: '3',
            date: '2024-08-22T10:00:00.000Z',
            location: 'St. Christopherus',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '4',
            date: '2024-08-25T17:00:00.000Z',
            location: 'St. Christopherus',
            type: 'LANGUAGE',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'marien',
        name: 'St. Marien',
        masses: [
          {
            id: '5',
            date: '2024-08-23T11:00:00.000Z',
            location: 'St. Marien',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'johannes',
        name: 'St. Johannes Nepomuk II',
        masses: [
          {
            id: '6',
            date: '2024-08-21T18:00:00.000Z',
            location: 'St. Johannes Nepomuk II',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '7',
            date: '2024-08-24T10:30:00.000Z',
            location: 'St. Johannes Nepomuk II',
            type: 'MASS',
            cancelled: true,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'peter',
        name: 'St. Peter',
        masses: [
          {
            id: '8',
            date: '2024-08-22T08:00:00.000Z',
            location: 'St. Peter',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '9',
            date: '2024-08-25T11:00:00.000Z',
            location: 'St. Peter',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'paul',
        name: 'St. Paulus Of the holy Cross',
        masses: [
          {
            id: '10',
            date: '2024-08-23T17:00:00.000Z',
            location: 'St. Paul',
            type: 'WORD',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
      {
        id: 'elisabeth',
        name: 'St. Elisabeth',
        masses: [
          {
            id: '11',
            date: '2024-08-24T19:00:00.000Z',
            location: 'St. Elisabeth',
            type: 'FAMILY',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
          {
            id: '12',
            date: '2024-08-26T09:00:00.000Z',
            location: 'St. Elisabeth',
            type: 'MASS',
            cancelled: false,
            updatedAt: '',
            createdAt: '',
          },
        ],
      },
    ],
  },
}
