import { useDragAndDropHandlers, } from './hooks';
export const useLogic = ({ onClick, renderDayContent, onDayHover, monthDay, date, isInSelectedRange, isSelected, isDisabled, dragAndDropProps, }) => {
    const handleMouseEnter = onDayHover ? () => onDayHover?.(date) : undefined;
    const handleRenderDayContent = renderDayContent
        ? renderDayContent
        : () => monthDay;
    const handleOnClick = onClick ? () => onClick?.(date) : undefined;
    const component = !onClick ? 'time' : undefined;
    const isNotInteractable = !onClick;
    const dragAndDropHandlers = useDragAndDropHandlers({
        dragAndDropProps,
        isDisabled,
        date,
        isInSelectedRange,
        isSelected,
    });
    return {
        handleMouseEnter,
        handleRenderDayContent,
        handleOnClick,
        component,
        isNotInteractable,
        ...dragAndDropHandlers,
    };
};
