chore: LoginRegisterForm and AuthenticationContainer created

This commit is contained in:
مهرزاد قدرتی
2025-07-26 13:26:33 +03:30
parent d2efafa5a9
commit 2e10a5496c
14 changed files with 628 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
import React, { useState, type JSX } from 'react';
import { LoginRegisterForm } from './LoginRegiserForm';
import type { AuthMode, AuthType } from '../types/auth-types';
export const AuthenticationContainer = (): JSX.Element => {
const [authMode, setAuthMode] = useState<AuthMode>('login');
const [authType, setAuthType] = useState<AuthType>('phone');
const [currentStep, setCurrentStep] = useState<
'emailOrPassword' | 'verify' | 'enterPassword'
>('emailOrPassword');
const handleLoginRegister = (value: string) => {};
return (
<>
{currentStep === 'emailOrPassword' && (
<LoginRegisterForm
authType={authType}
setAuthType={setAuthType}
onLoginRegisterSubmit={handleLoginRegister}
/>
)}
</>
);
};