export default function onLeavePropsProvider(props) {
  const {
    usersLeavesDayList,
    userInfo,
    dataChart,
    showAlert,
    totalArr,
    isDisableLoadMore,
    leaveRequestList,
    leaveApproveReqList,
    modalContent,
    payloadApproveRequestLeavesDays,
    approveRequestLeavesDaysList,
    onLoadMoreLeavesApproveReqTicket,
    onRefreshLeaveList,
    onRefreshLeaveApproveReqList,
    navigateToConfirmDate,
    navigateToOverTime,
    alertMessage,
    onHideAlert,
    onLoadMoreLeavesTicket,
    onOpenDetailModal,
    onOpenRequestLeavesModal,
    onCloseModal,
    onChangeSelectFilter,
    leavesDaysModal,
    leaveCategory,
    directManagersList,
    openTimePicker,
    setOpenTimePicker,
    timeRequestLeave,
    setTimeRequestLeave,
    leaveRequestImage,
    openGallery,
    onDeleteLeaveRequestImage,
    leaveRequestTicket,
    setLeaveRequestTicket,
    onSubmitLeaveRequest,
    onSelectManagerLeaveRequest,
    onSubmitApproveLeaveRequest,
  } = props;
  return {
    leavesDaysModal,
    usersLeavesDayList,
    userInfo,
    dataChart,
    showAlert,
    totalArr,
    isDisableLoadMore,
    leaveRequestList,
    leaveApproveReqList,
    modalContent,
    payloadApproveRequestLeavesDays,
    approveRequestLeavesDaysList,
    onLoadMoreLeavesApproveReqTicket,
    onRefreshLeaveList,
    onRefreshLeaveApproveReqList,
    navigateToConfirmDate,
    navigateToOverTime,
    alertMessage,
    onHideAlert,
    onLoadMoreLeavesTicket,
    onOpenDetailModal,
    onOpenRequestLeavesModal,
    onCloseModal,
    onChangeSelectFilter,
    approveRequestLeavesDaysProps: {
      payloadApproveRequestLeavesDays,
      onChangeSelectFilter,
      approveRequestLeavesDaysList,
      userInfo,
      onOpenDetailModal,
    },
    leaveRequestModalProps: {
      leaveCategory,
      userInfo: leavesDaysModal.userInfo || userInfo,
      onCloseModal,
      directManagersList,
      openTimePicker,
      setOpenTimePicker,
      timeRequestLeave,
      setTimeRequestLeave,
      leaveRequestImage,
      openGallery,
      onDeleteLeaveRequestImage,
      leaveRequestTicket,
      setLeaveRequestTicket,
      onSubmitLeaveRequest,
      onSelectManagerLeaveRequest,
      isRequest: leavesDaysModal.isRequest,
      onSubmitApproveLeaveRequest,
    },
  };
}
