import React from "react";
import ScheduleDetailList from "../../components/ScheduleDetailList";
import CurrentDay from "../../components/CurrentDay";
/**
 * 日程数据以天为单位展示
 * @param props
 * @constructor
 */
var SchedulesForDay = function SchedulesForDay(props) {
  var onOpenDetail = props.onOpenDetail,
    dataSource = props.dataSource,
    slot = props.slot,
    loading = props.loading,
    currentSelectDayDetail = props.currentSelectDayDetail,
    onCloseDay = props.onCloseDay,
    scheduleMap = props.scheduleMap;
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
    style: {
      padding: "0 32px"
    }
  }, /*#__PURE__*/React.createElement(CurrentDay, {
    currentDay: currentSelectDayDetail === null || currentSelectDayDetail === void 0 ? void 0 : currentSelectDayDetail.date,
    onClose: onCloseDay
  })), slot, /*#__PURE__*/React.createElement(ScheduleDetailList, {
    dataSource: dataSource,
    onOpenDetail: onOpenDetail,
    loading: loading,
    scheduleMap: scheduleMap
  }));
};
export default SchedulesForDay;