import * as React from 'react';
import {withInfo} from '@storybook/addon-info';
import {boolean, select, withKnobs} from '@storybook/addon-knobs';
import {storyLayout} from '../../index.stories';
import {Calendar} from './Calendar';

// eslint-disable-next-line no-restricted-syntax
export default {
    title: 'Calendar',
    decorators: [withInfo, withKnobs, storyLayout]
};

export const calendarUn = () => {
    return (
        <>
            <Calendar
                mode={select('mode', ['month', 'year'], 'month')}
                fullscreen={boolean('fullscreen', true)}
                i18nLocale={select('i18nLocale', ['ru', 'en'], 'ru')}
            />
        </>
    );
};
