import { createContext, useContext } from "react";
import { AtomStore } from "./store";
/**
 * Context for the global atom store.
 */
export let AtomContext = createContext({
    store: new AtomStore(),
});
/**
 * Hook to access the global atom store.
 *
 * @returns The atom store instance.
 */
export function useAtomStore() {
    return useContext(AtomContext);
}
