"use client"; import { signIn } from "next-auth/react"; import { Button } from "../../Button"; import { GoogleIcon } from "../../icons"; export const GoogleButton = ({ text = "Continue with Google", inviteUrl, }: { text?: string; inviteUrl?: string | null; }) => { const handleLogin = async () => { await signIn("google", { redirect: true, callbackUrl: inviteUrl ? inviteUrl : "/", // redirect after login to / }); }; return ( ); };