databag/app/mobile/src/context/AccountContext.js
2022-09-14 12:18:16 -07:00

15 lines
381 B
JavaScript

import { createContext } from 'react';
import { useAccountContext } from './useAccountContext.hook';
export const AccountContext = createContext({});
export function AccountContextProvider({ children }) {
const { state, actions } = useAccountContext();
return (
<AccountContext.Provider value={{ state, actions }}>
{children}
</AccountContext.Provider>
);
}