import React, { useMemo } from 'react' import { MonthsProps } from '../types' import CustomSelect from '../components/CustomSelect' import { DEFAULT_LOCALE_EN } from '../locale' import { classNames } from '../utils' import { UNITS } from '../constants' export default function Months(props: MonthsProps) { const { value, setValue, locale, className, humanizeLabels, disabled, readOnly, period, } = props const optionsList = locale.months || DEFAULT_LOCALE_EN.months const internalClassName = useMemo( () => classNames({ 'react-js-cron-field': true, 'react-js-cron-months': true, [`${className}-field`]: !!className, [`${className}-months`]: !!className, }), [className] ) return (
{locale.prefixMonths !== '' && ( {locale.prefixMonths || DEFAULT_LOCALE_EN.prefixMonths} )}
) }