| 1 | import { RegistryContext } from "@effect/atom-react"; |
| 2 | import { AtomRegistry } from "effect/reactivity"; |
| 3 | import { createElement } from "react"; |
| 4 | |
| 5 | export const appAtomRegistry = AtomRegistry.make(); |
| 6 | |
| 7 | export function AppAtomRegistryProvider({ children }: React.PropsWithChildren) { |
| 8 | return createElement(RegistryContext.Provider, { value: appAtomRegistry }, children); |
| 9 | } |