스토어 물재이용 타입이랑 초기값 추가.

This commit is contained in:
truthwing
2025-03-10 16:58:04 +09:00
parent 4775da6725
commit 68ed0f6436
+5 -2
View File
@@ -1,11 +1,14 @@
import { createStore } from 'zustand/vanilla';
import { tableActionsExport, tableStateExport, type tableState, type tableType } from './publicReuseFaciltyInsert/index';
export type WrStore = tableType;
import { buildingTableActionsExport, buildingtableStateExport, type buildingTableType } from './rainReuseFacilityInsert';
export type WrStore = tableType & buildingTableType;
export const StoreZus = (initState: tableState = tableStateExport) => {
return createStore<WrStore>()((set) => {
return {
...initState,
...tableActionsExport(set)
...tableActionsExport(set),
...buildingtableStateExport,
...buildingTableActionsExport(set)
}
})
}