import type { Moment } from 'moment'

import { withInstall } from '../_util/type'
import generateConfig from '../vc-picker/generate/moment'
import type { CalendarProps } from './generateCalendar'
import generateCalendar from './generateCalendar'

const Calendar = generateCalendar<Moment>(generateConfig)

export type { CalendarProps }
export default withInstall(Calendar)
