import { create } from 'zustand';
import { devtools, subscribeWithSelector } from 'zustand/middleware';
export function initializeStore(initialState, methods) {
    return (overrideInitialState) => {
        return create(subscribeWithSelector(devtools((set, get) => {
            return {
                ...initialState,
                ...overrideInitialState,
                ...methods(set, get),
            };
        })));
    };
}
export const removeFn = (object) => {
    return JSON.parse(JSON.stringify(object));
};
//# sourceMappingURL=utils.js.map
