import { createStore } from 'zustand/vanilla'; import { tableActionsExport, tableStateExport, type tableState, type tableType } from './table'; export type SnStore = tableType; //export type SnStore = ReturnType["getState"]; export const StoreZus = (initState: tableState = tableStateExport) => { return createStore()((set) => { return { ...initState, ...tableActionsExport(set) } }) } //store 등록하는 부분