mirror of
https://github.com/balzack/databag.git
synced 2025-02-15 13:09:17 +00:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
|
import { createContext } from 'react';
|
||
|
import { useRingContext } from './useRingContext.hook';
|
||
|
|
||
|
export const RingContext = createContext({});
|
||
|
|
||
|
export function RingContextProvider({ children }) {
|
||
|
const { state, actions } = useRingContext();
|
||
|
return (
|
||
|
<RingContext.Provider value={{ state, actions }}>
|
||
|
{children}
|
||
|
</RingContext.Provider>
|
||
|
);
|
||
|
}
|
||
|
|