import type { Meta, StoryObj } from '@storybook/nextjs-vite'
import { StandaloneHotelCardDialog } from './index'

import { fn } from 'storybook/test'

const meta: Meta<typeof StandaloneHotelCardDialog> = {
  title: 'Components/StandaloneHotelCardDialog',
  component: StandaloneHotelCardDialog,
  argTypes: {},
}

export default meta

type Story = StoryObj<typeof StandaloneHotelCardDialog>

export const Default: Story = {
  args: {
    data: {
      name: 'Hotel Name',
      image: {
        url: 'img/img2.jpg',
        alt: 'Alt text',
      },
      coordinates: {
        lat: 0,
        lng: 0,
      },
      chequePrice: null,
      publicPrice: 100,
      memberPrice: 200,
      redemptionPrice: null,
      voucherPrice: null,
      rateType: null,
      currency: 'SEK',
      amenities: [],
      ratings: { tripAdvisor: 5 },
      operaId: '123',
      facilityIds: [],
      hasEnoughPoints: false,
    },
    handleClose: fn(),
  },
}
