import { defineStore } from 'pinia';
import { ref } from 'vue';

export const useNodeStatusInfoStore = defineStore('nodeStatusInfo', () => {
  const finishedNodeIds = ref<string[]>([]);
  const rejectedNodeIds = ref<string[]>([]);

  function setFinishedNodeIds(ids: string[]) {
    finishedNodeIds.value = [...ids];
  }
  function setRejectedNodeIds(ids: string[]) {
    rejectedNodeIds.value = [...ids];
  }

  return { finishedNodeIds, setFinishedNodeIds, rejectedNodeIds, setRejectedNodeIds };
});
