14 lines
512 B
TypeScript
14 lines
512 B
TypeScript
import { createStore } from 'zustand/vanilla';
|
|
import { tableActionsExport, tableStateExport, type tableState, type tableType } from './oper/index';
|
|
//import { upHeadList as pplinesUpHeadList, publicReuseFacilityUper as pplinesData } from './oper/pplines';
|
|
export type SnStore = tableType;
|
|
export const StoreZus = (initState: tableState = tableStateExport) => {
|
|
return createStore<SnStore>()((set) => {
|
|
return {
|
|
...initState,
|
|
...tableActionsExport(set)
|
|
}
|
|
})
|
|
}
|
|
//store 등록하는 부분
|