import { redirect } from "next/navigation";
import { auth } from "~/server/auth.js";

export default async function HomePage() {
  const session = await auth();

  if (!session?.user) {
    redirect("/auth/signin");
  }

  redirect("/resources");
}
