databag/net/web/src/context/GroupContext.js
2022-04-25 22:25:03 -07:00

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>
);
}