const task1 = {
  id: 1,
  isStop: true,
  name: "ТЗ на раздел",
  projectCode: "21.020-ТЕХ",
  group: {
    backgroundColor: "red",
    name: "ВК",
  },
  process: {
    id: 1,
    name: "ИОС2.НВ",
  },
  executor: {
    isDelegate: false,
    fullName: "Иванов Иван Иванович",
  },
  date: {
    value: "25.04.2001",
    isExpired: true,
  },
};

const task2 = {
  id: 2,
  isStop: true,
  name: "ТЗ на раздел",
  projectCode: "21.020-ТЕХ",
  group: {
    backgroundColor: "red",
    name: "СС",
  },
  process: {
    id: 1,
    name: "ИОС2.НВ",
  },
  executor: {
    isDelegate: false,
    fullName: "Иванов Иван Иванович",
  },
  date: {
    value: "25.04.2001",
    isExpired: true,
  },
};

const task3 = {
  id: 3,
  isStop: true,
  name: "ТЗ на раздел",
  projectCode: "21.020-ТЕХ",
  group: {
    backgroundColor: "red",
    name: "ТЗ",
  },
  process: {
    id: 1,
    name: "ИОС2.НВ",
  },
  executor: {
    isDelegate: false,
    fullName: "Иванов Иван Иванович",
  },
  date: {
    value: "25.04.2001",
    isExpired: true,
  },
};



      /*
      const updatedTaskGroups = taskGroups.map((taskGroup) => {
        if (taskGroup.id === source.droppableId) {
          const tasks = Array.from(taskGroup.tasks);
          const [reorderedItem] = tasks.splice(result.source.index, 1);
          tasks.splice(result.destination.index, 0, reorderedItem);

          return { ...taskGroup, tasks };
        }

        return taskGroup;
      });
      */


    /*
    const sourceTasks =
      taskGroups.find((taskGroup) => taskGroup.id === source.droppableId)
        ?.tasks ?? [];

    const destinationTasks =
      taskGroups.find((taskGroup) => taskGroup.id === destination.droppableId)
        ?.tasks ?? [];

    // удаляем задачу из колонки-истока, добавляем в колонку-сток
    console.log(4);
    const [reorderedItem] = sourceTasks.splice(result.source.index, 1);
    destinationTasks.splice(result.destination.index, 0, reorderedItem);

    const updatedTaskGroups = taskGroups.map((taskGroup) => {
      if (taskGroup.id === source.droppableId) {
        return { ...taskGroup, tasks: sourceTasks };
      }

      if (taskGroup.id === destination.droppableId) {
        return { ...taskGroup, tasks: destinationTasks };
      }

      return taskGroup;
    });
    */

