+
کد دریافتی را وارد نمایید
+
+ setValue('otpCode', otp)}
+ renderInput={(props) =>
+
+ }
+ />
+
+ {
+ errors.otpCode?.message &&
+ }
+
+
+
+
+ {/* Countdown and Resend Section */}
+
+
+ کد فعالسازی را دریافت نکردید؟
+ {countdownValue !== '00:00' ? (
+ {countdownValue}
+ ) : (
+
+ )}
+
+
+
+ )
+}
+
+export default LoginStep2
\ No newline at end of file
diff --git a/src/app/auth/hooks/useAuthData.ts b/src/app/auth/hooks/useAuthData.ts
new file mode 100644
index 0000000..c82d7d2
--- /dev/null
+++ b/src/app/auth/hooks/useAuthData.ts
@@ -0,0 +1,14 @@
+import { useMutation } from "@tanstack/react-query";
+import { authentication, verifyOtp } from "../service/Service";
+
+export const useAuthentication = () => {
+ return useMutation({
+ mutationFn: authentication,
+ });
+};
+
+export const useVerifyOtp = () => {
+ return useMutation({
+ mutationFn: verifyOtp,
+ });
+};
diff --git a/src/app/auth/page.tsx b/src/app/auth/page.tsx
new file mode 100644
index 0000000..b8bf877
--- /dev/null
+++ b/src/app/auth/page.tsx
@@ -0,0 +1,50 @@
+'use client'
+import { NextPage } from 'next'
+import Image from 'next/image';
+import LoginStep1 from './components/LoginStep1';
+
+const LoginPage: NextPage = () => {
+
+ return (
+