import { getPageSession } from "@/auth/lucia";
import ExpertForm from "./ExpertForm";

const page = async () => {

  const session = await getPageSession()

    const questions = await prisma?.expertApplicationQuestion.findMany({
        orderBy: {
            id: "asc",
        },
    }) ?? [];
        
    return (
        <>
        <ExpertForm questions={questions} session={session}/>
        </>
    );
}

export default page;