const baseLoadedData = {
  projectId: null,
  rows: [],
};

export function createSpecialCheckLoadedData({ projectId, listData } = {}) {
  return {
    ...baseLoadedData,
    projectId,
    rows: Array.isArray(listData && listData.rows) ? listData.rows : [],
  };
}

export const specialCheckStateData = {
  loaded: baseLoadedData,
  empty: {
    ...baseLoadedData,
    rows: [],
  },
  loading: {
    ...baseLoadedData,
    rows: [],
  },
};
