export default function useMainUiProps({
  selectedTaskName,
  autosaveNote,
  taskStatus,
  hasSelectedTask,
  canSaveTask,
  taskActionLoading,
  saveTask,
  parseHistory,
  joinGroupsForTask,
  checkAll,
  startTask,
  stopTask,
  moreActionsOpen,
  setMoreActionsOpen,
  moreActionsRef,
  clearQueue,
  startAllTasks,
  stopAllTasks,
  clearDatabase,
  resetSessions,
  pauseReason,
  setActiveTab,
  tasksLength,
  runTestSafe,
  nowLine,
  nowExpanded,
  setNowExpanded,
  primaryIssue,
  openFixTab,
  monitorLabels,
  inviteLabels,
  roleSummary,
  groupVisibility,
  lastEvents,
  formatTimestamp,
  checklistOpen,
  setChecklistOpen,
  checklistStats,
  checklistItems,
  activeTab,
  logsTab,
  setLogsTab
}) {
  const quickActions = {
    selectedTaskName,
    autosaveNote,
    taskStatus,
    hasSelectedTask,
    canSaveTask,
    taskActionLoading,
    saveTask,
    parseHistory,
    joinGroupsForTask,
    checkAll,
    startTask,
    stopTask,
    moreActionsOpen,
    setMoreActionsOpen,
    moreActionsRef,
    clearQueue,
    startAllTasks,
    stopAllTasks,
    clearDatabase,
    resetSessions,
    pauseReason,
    setActiveTab,
    tasksLength,
    runTestSafe
  };
  const nowStatus = {
    nowLine,
    nowExpanded,
    setNowExpanded,
    primaryIssue,
    openFixTab,
    monitorLabels,
    inviteLabels,
    roleSummary,
    taskStatus,
    groupVisibility,
    lastEvents,
    formatTimestamp
  };
  const checklist = {
    checklistOpen,
    setChecklistOpen,
    checklistStats,
    checklistItems,
    setActiveTab
  };
  const tabs = {
    activeTab,
    setActiveTab,
    logsTab,
    setLogsTab
  };

  return { quickActions, nowStatus, checklist, tabs };
}
