import useNotifier from "@saleor/hooks/useNotifier"; import React from "react"; import { useApolloClient } from "react-apollo"; import { useIntl } from "react-intl"; import { UserContext } from "./"; import { useAuthProvider } from "./hooks/useAuthProvider"; interface AuthProviderProps { children: React.ReactNode; } const AuthProvider: React.FC = ({ children }) => { const apolloClient = useApolloClient(); const intl = useIntl(); const notify = useNotifier(); const authProvider = useAuthProvider({ intl, notify, apolloClient }); return ( {children} ); }; export default AuthProvider;