import React from 'react';
import { Meta, StoryFn } from '@storybook/react';
import { StarRating, StarRatingProps } from './StarRating';

export default {
  title: 'Atoms/StarRating',
  component: StarRating,
} as Meta;

const Template: StoryFn<StarRatingProps> = (args) => <StarRating {...args} />;

export const Default = Template.bind({});

Default.args = {
  rating: 0,
  setRating: (s) => console.log(s),
};
