index.tsx raw

   1  import AccountManager from '@/components/AccountManager'
   2  import SecondaryPageLayout from '@/layouts/SecondaryPageLayout'
   3  import { useSecondaryPage } from '@/PageManager'
   4  import { forwardRef } from 'react'
   5  import { useTranslation } from 'react-i18next'
   6  
   7  const LoginPage = forwardRef(({ index }: { index?: number }, ref) => {
   8    const { t } = useTranslation()
   9    const { pop } = useSecondaryPage()
  10  
  11    return (
  12      <SecondaryPageLayout ref={ref} index={index} title={t('Login')}>
  13        <div className="p-4">
  14          <AccountManager close={() => pop()} />
  15        </div>
  16      </SecondaryPageLayout>
  17    )
  18  })
  19  LoginPage.displayName = 'LoginPage'
  20  export default LoginPage
  21