import { Button, Divider } from 'antd' import React, { FC } from 'react' import { useGuardContext } from '../../../../context/global/context' import { GuardScenes } from '../../types' import './style.less' import { useTranslation } from 'react-i18next' export interface LoginFormFooterProps { loading: boolean needRestPwd?: boolean needRegister?: boolean } export const LoginFormFooter: FC = ({ loading, needRestPwd = false, needRegister = false, }) => { const { t } = useTranslation() const { setValue, state: { config }, } = useGuardContext() return ( <>
{needRestPwd && !config.disableResetPwd && ( )} {needRestPwd && needRegister && !config.disableResetPwd && !config.disableRegister && } {needRegister && !config.disableRegister && (
{t('common.noAccYet')}
)}
) }