import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef, useContext } from 'react';
import { ConfigContext } from '../../../../ConfigProvider';
import { Container, DoubleNextIcon, NextIcon, Wrapper } from './styles';
export const DateCalendarNextButton = forwardRef(({ postfixTitle, isPlural, isDoubleIcon, ...props }, ref) => {
    const { next } = useContext(ConfigContext).datePickerLanguageMap;
    return (_jsx(Wrapper, { ref: ref, disabled: !props.onClick, tooltipTitle: `${isPlural ? next.plural : next.single} ${postfixTitle}`, ...props, children: isDoubleIcon ? _jsx(DoubleNextIcon, {}) : _jsx(NextIcon, {}) }));
});
export const DateCalendarNextButtonContainer = Container;
