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

import { TripAdvisorChip } from './index'

const meta: Meta<typeof TripAdvisorChip> = {
  title: 'Components/TripAdvisorChip',
  component: TripAdvisorChip,
  argTypes: {
    rating: {
      control: {
        type: 'number',
        min: 0,
        max: 5,
        step: 0.1,
      },
    },
    variant: {
      control: {
        type: 'select',
      },
      options: ['default', 'small'],
    },
  },
}

export default meta

type Story = StoryObj<typeof TripAdvisorChip>

export const PrimaryDefault: Story = {
  args: {
    rating: 4.5,
    variant: 'default',
  },
}

export const Small: Story = {
  args: {
    rating: 4.5,
    variant: 'small',
  },
}
