Initial commit from Create Next App
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user