import { useContext } from 'react' ; import AuthenticationContext from '../containers/authentication/authenticationContext' ; import { PrivateAuthenticationStore } from '../containers/app/interface' ; const useAuthentication = ( ) => { return useContext ( AuthenticationContext ) as PrivateAuthenticationStore ; } ; export default useAuthentication ;