21 lines
461 B
TypeScript
21 lines
461 B
TypeScript
"use client";
|
|
|
|
import { signIn } from "next-auth/react";
|
|
|
|
type Props = {
|
|
large?: boolean;
|
|
};
|
|
|
|
export function SignInButton({ large }: Props) {
|
|
return (
|
|
<button
|
|
onClick={() => signIn("google", { callbackUrl: "/dashboard" })}
|
|
className={`rounded bg-white font-medium text-gray-900 transition-colors hover:bg-gray-100 ${
|
|
large ? "px-8 py-3 text-base" : "px-4 py-2 text-sm"
|
|
}`}
|
|
>
|
|
Sign in with Google
|
|
</button>
|
|
);
|
|
}
|