"use client"

import { redirect } from "next/navigation"
import { useUser } from "../user-context"
import { useEffect } from "react"

export default function MePage() {
    const { isAuthenticated, user } = useUser()

    useEffect(() => {
        if (!isAuthenticated) {
            redirect("/login")
        }
    }, [isAuthenticated])

    return (
        <div>
            <h1>Me</h1>
        </div>
    )
}