"use client"; import React, { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; import Image from "next/image"; import Header from "@/components/Header"; import SlidingGallery from "@/components/SlidingGallery"; import BackgroundWrapper from "@/components/BackgroundWrapper"; import { ChevronRight } from "lucide-react"; import styles from "@/css/Home.module.css"; import { getLinkedViews } from "@/lib/gallery-views"; import { GalleryViews } from "@/types/gallery"; import { useAuthStore } from "@/stores/authStore"; import DestructibleAlert from "@/components/DestructibleAlert"; const HomePage = () => { const router = useRouter(); const [linkedViews, setLinkedViews] = useState(); const { user } = useAuthStore(); useEffect(() => { const fetchedLinkedViews: GalleryViews[] = getLinkedViews(); setLinkedViews(fetchedLinkedViews); }, []); return (
{!user?.is_verified && ( )}
{/* Categories Section */}

Categories

{/* Leaderboard Section */}

Leaderboard

Top 3
{/* {boardError ? ( ) : ( getTopThree(boardData).map((student, idx) => (
{student.rank} {student.name}
{student.points}pt
)) )} */}

Coming soon

{/* Performance Summary Section */}

Performance Summary

Coming soon.

{/* Progress Tracker Section */}

Progress Tracker

Coming soon.

{/* Daily Quiz Section */}

Daily Quiz

Coming soon.

{/* Live Exams Section */}

Live Exams

Coming soon.

); }; export default HomePage;