import React, { useState, type JSX } from 'react'; import { LoginRegisterForm } from './LoginRegiserForm'; import type { AuthMode, AuthType } from '../types/auth-types'; import { OtpVerifyForm } from './OtpVerifyForm'; export const AuthenticationContainer = (): JSX.Element => { const [authMode, setAuthMode] = useState('register'); const [authType, setAuthType] = useState('phone'); const [currentStep, setCurrentStep] = useState< 'emailOrPassword' | 'verify' | 'enterPassword' >('verify'); const [loginRegisterValue, setLoginRegisterValue] = useState('9152814093'); const handleLoginRegister = (value: string) => { setLoginRegisterValue(value); setCurrentStep('verify'); }; const handleEditValue = () => { setCurrentStep('emailOrPassword'); }; return ( <> {currentStep === 'emailOrPassword' && ( )} {currentStep === 'verify' && ( )} ); };