import { ReactNode } from 'react' ; import { PrivateAuthenticationStore , PublicAuthenticationStore } from '../app/interface' ; import AuthenticationContext from './authenticationContext' ; interface Props { children ? : ReactNode ; store : PrivateAuthenticationStore | PublicAuthenticationStore ; } const AuthenticationProvider = ( { store , children } ) => { return < AuthenticationContext . Provider value = { store } > { children } < /AuthenticationContext.Provider>; } ; export default AuthenticationProvider ;