"use client";
import { Button } from "@/components/ui/button";
import { signIn, signOut, useSession } from "next-auth/react";
import Link from "next/link";
export function LoginButton() {
const { data: session } = useSession();
const callbackUrl =
typeof window === "undefined"
? undefined
: new URLSearchParams(document.location.search).get("callbackUrl") ??
undefined;
if (session) {
return (
<>
>
);
}
return (
<>
>
);
}