import * as React from "react";
function useScheduleDialog() {
  const [scheduleDialogOpen, setScheduleDialogOpen] = React.useState(false);
  const [scheduleEditData, setScheduleEditData] = React.useState(null);
  const openSchedule = React.useCallback(() => {
    setScheduleEditData(null);
    setScheduleDialogOpen(true);
  }, []);
  const openEdit = React.useCallback((data) => {
    setScheduleEditData(data);
    setScheduleDialogOpen(true);
  }, []);
  const closeSchedule = React.useCallback(() => {
    setScheduleDialogOpen(false);
    setScheduleEditData(null);
  }, []);
  return {
    scheduleDialogOpen,
    scheduleEditData,
    openSchedule,
    openEdit,
    closeSchedule
  };
}
export {
  useScheduleDialog
};
//# sourceMappingURL=useScheduleDialog.js.map
