databag/app/mobile/src/context/ProfileContext.js
2022-09-14 00:27:49 -07:00

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