import type { Meta, StoryObj } from '@storybook/react'

import { RateCard } from './RateCard'

const meta: Meta<typeof RateCard> = {
  title: 'Components/RateCard/Regular',
  component: RateCard,
  decorators: [
    (Story) => (
      <div style={{ maxWidth: '400px' }}>
        <Story />
      </div>
    ),
  ],
  argTypes: {
    title: { control: 'text' },
  },
}

export default meta

type Story = StoryObj<typeof RateCard>

export const Regular: Story = {
  args: {
    variant: 'Regular',
    title: 'FREE CANCELLATION / PAY NOW',
    rate: {
      label: 'Standard Price',
      price: '1989',
      unit: 'EUR/night',
    },
    approximateRate: {
      price: '1989 EUR',
      label: 'Approx.',
    },
  },
}
