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