import type { Meta, StoryObj } from '@storybook/react'
import { MassTimer } from './MassTimer'
import { fn } from '@storybook/test'

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

type Story = StoryObj<typeof MassTimer>
export default meta

export const OneDay: Story = {
  args: {
    nextMass: {
      id: '1',
      location: {
        id: "d",
        name: "St. Richard",
        address: "Wegstraße 12",
        updatedAt: "2025-08-23T15:00:00.000Z",
        createdAt: '2025-08-23T15:00:00.000Z',
      },
      date: '2025-08-23T15:00:00.000Z',
      type: 'WORD',
      cancelled: false,
      createdAt: '2025-08-23T15:00:00.000Z',
      updatedAt: '2025-08-23T15:00:00.000Z',
    },
    onStarClick: fn(),
  },
}

export const TimeOut: Story = {
  args: {
    nextMass: {
      id: '1',
      location: {
        id: "d",
        name: "St. Richard",
        address: "Wegstraße 12",
        updatedAt: "2025-08-23T15:00:00.000Z",
        createdAt: '2025-08-23T15:00:00.000Z',
      },
      date: '2025-08-23T15:00:00.000Z',
      type: 'WORD',
      cancelled: false,
      createdAt: '2025-08-23T15:00:00.000Z',
      updatedAt: '2025-08-23T15:00:00.000Z',
    },
    onStarClick: fn(),
  },
}
