+ {questions.map((question) => {
+ const title = question.question ?? question.text ?? question.title ?? "Untitled question";
+ const examType = question.examType ?? question.category;
+ const formattedDate = formatDate(question.createdAt);
+
+ return (
+
+
+ {title}
+ {examType ? {examType} : null}
+
+
+
+ {question.answer ?? "No answer available."}
+
+ {formattedDate ? (
+ {formattedDate}
+ ) : null}
+
+
+ );
+ })}
+
+ );
+}
\ No newline at end of file
diff --git a/components/onboarding/onboarding-view.tsx b/components/onboarding/onboarding-view.tsx
new file mode 100644
index 0000000..fb9ce16
--- /dev/null
+++ b/components/onboarding/onboarding-view.tsx
@@ -0,0 +1,53 @@
+"use client";
+
+import { useEffect } from "react";
+import Link from "next/link";
+import { useRouter } from "next/navigation";
+import { useAuth } from "@/components/auth-provider";
+import { LatestQuestions } from "@/components/onboarding/latest-questions";
+import { Button } from "@/components/ui/button";
+
+export default function OnboardingView() {
+ const router = useRouter();
+ const auth = useAuth();
+ const user = auth.user;
+ const loading = (auth as { loading?: boolean }).loading;
+
+ useEffect(() => {
+ if (!loading && user) {
+ router.replace("/");
+ }
+ }, [loading, user, router]);
+
+ return (
+