1 import type { ReactNode } from 'react';
3 import type { PrivateAuthenticationStore, PublicAuthenticationStore } from '../app/interface';
4 import AuthenticationContext from './authenticationContext';
6 export interface Props {
8 store: PrivateAuthenticationStore | PublicAuthenticationStore;
11 const AuthenticationProvider = ({ store, children }: Props) => {
12 return <AuthenticationContext.Provider value={store}>{children}</AuthenticationContext.Provider>;
15 export default AuthenticationProvider;