import React , { FC , ReactElement , memo , useContext } from 'react' ; import { UserContext } from '@contexts/user' ; import MainLayout from '@layouts/main/MainLayout' ; import Login from './Login' ; interface iProps { currentUrl : string ; } const Layout = ( { currentUrl } ) : ReactElement => { const { login } = useContext ( UserContext ) ; return ( < MainLayout title = "Login" noFlex > < Login login = { login } currentUrl = { currentUrl } / > < /MainLayout>); } ; export default memo ( Layout ) ;