import { signIn, signOut } from "@/auth" import { Button } from "@/components/ui/button" import Link from "next/link" export function LoginButton({ session }: { session: any }) { if (session) { return (
Dashboard
{ "use server" await signOut() }} >
) } return (
{ "use server" await signIn("discord", { redirectTo: "/dashboard" }) }} >
) }