import { Meta, StoryFn } from "@storybook/react";
import { DatePicker, DatePickerProps } from "./DatePicker";
import React from "react";

export default {
  title: "Atoms/DatePicker",
  component: DatePicker,
} as Meta;

const Template: StoryFn<DatePickerProps> = (args) => <DatePicker {...args} />;
export const Default = Template.bind({});
Default.args = {
  defaultMonth: Date.now(),
  datesAvailableForBookings: [
    new Date(2023, 10, 15).toString(),
    new Date(2023, 10, 16).toString(),
    new Date(2023, 10, 22).toString(),
    new Date(2023, 10, 27).toString(),
  ],
  selectedDays: [new Date(2023, 10, 15), new Date(2023, 10, 16)],
  fromMonth: new Date(2023, 9),
  toMonth: new Date(2023, 11),
};
