/*
 * Copyright (c) 2023-2025 Datalayer, Inc.
 * Distributed under the terms of the Modified BSD License.
 */
import { createStore } from 'zustand/vanilla';
import { useStore } from 'zustand';
export const documentStore = createStore((set, get) => ({
    documentSaveRequest: undefined,
    save: (documentSaveRequest) => set((state) => ({ documentSaveRequest })),
}));
export function useDocumentStore(selector) {
    return useStore(documentStore, selector);
}
export default useDocumentStore;
