import get from 'lodash/get' ; import React , { ReactElement } from 'react' ; import { useLocation } from 'react-router-dom' ; import CenteredCard from '../../../../../components/CenteredCard/CenteredCard' ; import GradientBackground from '../../../../../components/GradientBackground/GradientBackground' ; import IntroWrapper from '../../../../../components/IntroComponent/IntroComponent' ; import LoginContainer from '../../../containers/LoginContainer/LoginContainer' ; const LoginRoute = ( ) : ReactElement => { const location = useLocation ( ) ; return ( < GradientBackground > < CenteredCard > < IntroWrapper > < LoginContainer redirectBack = { get ( location , 'state.redirectBack' ) } / > < /IntroWrapper> < /CenteredCard> < /GradientBackground>); } ; export default LoginRoute ;