import { FC , ReactElement } from 'react' ; import { isBrowser } from '@contentpi/lib' ; import UserProvider from '../contexts/user' ; import LoginLayout from '../components/users/LoginLayout' ; interface IProps { currentUrl : string ; } const Page = ( { currentUrl = isBrowser ( ) ? window . location . search . replace ( '?redirectTo=' , '' ) : '' } ) : ReactElement => ( < UserProvider page = "login" > < LoginLayout currentUrl = { currentUrl } /> < /UserProvider>); export default Page ;