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

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

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

  redirect("/resources");
}
