"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DateCalendarHead = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const constants_1 = require("../../constants");
const DateCalendarChevronButton_1 = require("../DateCalendarChevronButton");
const styles_1 = require("./styles");
const DateCalendarHead = ({ arrowPostfixTitle, doubleArrowPostfixTitle, onHeadBtnClick, onPrevClick, onDoublePrevClick, onNextClick, onDoubleNextClick, headBtnTitle, headBtnText, isPlural, }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(DateCalendarChevronButton_1.DateCalendarPrevButtonContainer, { className: constants_1.datePickerClassnames.headButtonsContainer, children: [onDoublePrevClick && ((0, jsx_runtime_1.jsx)(DateCalendarChevronButton_1.DateCalendarPrevButton, { isDoubleIcon: true, postfixTitle: doubleArrowPostfixTitle ?? '', onClick: onDoublePrevClick, isPlural: isPlural })), (0, jsx_runtime_1.jsx)(DateCalendarChevronButton_1.DateCalendarPrevButton, { postfixTitle: arrowPostfixTitle, onClick: onPrevClick, isPlural: isPlural })] }), onHeadBtnClick ? ((0, jsx_runtime_1.jsx)(styles_1.HeadButton, { className: constants_1.datePickerClassnames.headTextButton, onClick: onHeadBtnClick, tooltipTitle: headBtnTitle, children: headBtnText })) : ((0, jsx_runtime_1.jsx)(styles_1.HeadText, { className: constants_1.datePickerClassnames.headText, role: "head", children: headBtnText })), (0, jsx_runtime_1.jsxs)(DateCalendarChevronButton_1.DateCalendarNextButtonContainer, { className: constants_1.datePickerClassnames.headButtonsContainer, children: [(0, jsx_runtime_1.jsx)(DateCalendarChevronButton_1.DateCalendarNextButton, { postfixTitle: arrowPostfixTitle, onClick: onNextClick, isPlural: isPlural }), onDoubleNextClick && ((0, jsx_runtime_1.jsx)(DateCalendarChevronButton_1.DateCalendarNextButton, { isDoubleIcon: true, postfixTitle: doubleArrowPostfixTitle ?? '', onClick: onDoubleNextClick, isPlural: isPlural }))] })] }));
exports.DateCalendarHead = DateCalendarHead;
