import React from "react";
import NotificationComp from "./NotificationComp";
import { ListAllNotifications } from "@/app/services/api/login-api";
import { useSession } from "next-auth/react";

const PreNotification = async () => {
  const { data: session } = useSession();
  const data = ListAllNotifications(session?.user.accessToken as string);
  return (
    <div>
      <NotificationComp />
    </div>
  );
};

export default PreNotification;
