mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 11:39:17 +00:00
15 lines
367 B
JavaScript
15 lines
367 B
JavaScript
|
import { createContext } from 'react';
|
||
|
import { useGroupContext } from './useGroupContext.hook';
|
||
|
|
||
|
export const GroupContext = createContext({});
|
||
|
|
||
|
export function GroupContextProvider({ children }) {
|
||
|
const { state, actions } = useGroupContext();
|
||
|
return (
|
||
|
<GroupContext.Provider value={{ state, actions }}>
|
||
|
{children}
|
||
|
</GroupContext.Provider>
|
||
|
);
|
||
|
}
|
||
|
|