"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DayButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const constants_1 = require("../../../constants");
const StaticCalendarGridButton_1 = require("../../StaticCalendarGridButton");
const useLogic_1 = require("./useLogic");
const DayButton = (props) => {
    const { isNotInteractable, handleMouseEnter, handleRenderDayContent, handleOnClick, component, isDraggable, handleDragEnter, handleDragOver, handleDrop, handleDragStart, handleDragEnd, } = (0, useLogic_1.useLogic)(props);
    return ((0, jsx_runtime_1.jsx)(StaticCalendarGridButton_1.StaticCalendarGridButton, { className: props.className, isHoliday: props.isHoliday, disabled: props.isDisabled, selected: props.isSelected, "aria-selected": props.isSelected, "$isDraggable": isDraggable, draggable: isDraggable, onDragEnter: handleDragEnter, onDragOver: handleDragOver, onDrop: handleDrop, onDragStart: handleDragStart, onDragEnd: handleDragEnd, component: component, "$isNotInteractable": isNotInteractable, isOutOfAvailableRange: props.isOutOfAvailableRange, isCurrentInUserLocalTime: props.isCurrentInUserLocalTime, isInSelectedRange: props.isInSelectedRange, onClick: handleOnClick, tooltipTitle: props.renderDayTooltipTitle?.(props), isTooltipActive: props.checkTooltipActive?.(props), lengthInRow: constants_1.DAYS_IN_WEEK, isPreviousItemInSelectedRange: props.isPreviousItemInSelectedRange, isNextItemInSelectedRange: props.isNextItemInSelectedRange, isPreviousItemInHoveredRange: props.isPreviousItemInHoveredRange, isNextItemInHoveredRange: props.isNextItemInHoveredRange, onMouseEnter: handleMouseEnter, isInHoveredRange: props.isInHoveredRange, disableInteractive: props.disableTooltipInteractive, children: handleRenderDayContent(props) }));
};
exports.DayButton = DayButton;
