import React from 'react';
import { Meta, Story } from '@storybook/react';
import { AtomInputDate, IInputDateProps } from 'react/atoms/Input/InputDate';
import moment from 'moment';

const meta: Meta = {
  title: 'React/atoms/Input',
  component: AtomInputDate,
  argTypes: {
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateInputDate: Story<IInputDateProps> = (props) => {
  return <AtomInputDate {...props} />;
};

export const InputDate = TemplateInputDate.bind({});

InputDate.args = {
  maxYear: moment().format('YYYY'),
  minYear: moment().subtract(100, 'y').format('YYYY'),
  disabled: false,
};
