chore: initialize insar management system v2

This commit is contained in:
2026-04-14 13:16:01 +08:00
commit ecc72ec9cd
361 changed files with 2142522 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { create } from 'zustand';
const s = (set, key) => (v) =>
set((state) => ({ [key]: typeof v === 'function' ? v(state[key]) : v }));
export const useBatchStore = create((set) => ({
batchTab: 'dinsar',
dinsarBatches: [],
psBatches: [],
selectedBatchId: '',
batchItems: [],
batchLoading: false,
batchError: '',
setBatchTab: s(set, 'batchTab'),
setDinsarBatches: s(set, 'dinsarBatches'),
setPsBatches: s(set, 'psBatches'),
setSelectedBatchId: s(set, 'selectedBatchId'),
setBatchItems: s(set, 'batchItems'),
setBatchLoading: s(set, 'batchLoading'),
setBatchError: s(set, 'batchError'),
}));