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