"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateCalendarPrevButtonContainer = exports.DateCalendarPrevButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const ConfigProvider_1 = require("../../../../ConfigProvider");
const styles_1 = require("./styles");
exports.DateCalendarPrevButton = (0, react_1.forwardRef)(({ postfixTitle, isPlural, isDoubleIcon, ...props }, ref) => {
    const { previous } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext).datePickerLanguageMap;
    return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { ref: ref, disabled: !props.onClick, tooltipTitle: `${isPlural ? previous.plural : previous.single} ${postfixTitle}`, ...props, children: isDoubleIcon ? (0, jsx_runtime_1.jsx)(styles_1.DoublePrevIcon, {}) : (0, jsx_runtime_1.jsx)(styles_1.PrevIcon, {}) }));
});
exports.DateCalendarPrevButtonContainer = styles_1.Container;
