2023-06-02 15:33:48 -04:00
|
|
|
'use client'
|
2023-06-02 12:27:06 -04:00
|
|
|
|
2023-06-06 13:18:06 -04:00
|
|
|
import { signIn } from '@auth/nextjs/client'
|
2023-06-02 15:33:48 -04:00
|
|
|
import { useRouter } from 'next/navigation'
|
2023-05-19 12:33:56 -04:00
|
|
|
|
|
|
|
|
export function Login() {
|
2023-06-02 15:33:48 -04:00
|
|
|
const router = useRouter()
|
2023-05-19 12:33:56 -04:00
|
|
|
return (
|
2023-05-22 10:16:09 -04:00
|
|
|
<button
|
2023-05-19 12:33:56 -04:00
|
|
|
className="inline-flex w-full items-center justify-center rounded border border-zinc-800 bg-white h-8 px-4 -my-1.5 text-sm leading-6 tracking-tight text-zinc-900 transition-colors ease-in-out hover:bg-zinc-100 disabled:cursor-not-allowed disabled:opacity-50"
|
2023-06-06 13:18:06 -04:00
|
|
|
onClick={() => signIn('github')}
|
2023-05-19 12:33:56 -04:00
|
|
|
>
|
|
|
|
|
<span className="font-medium">Login</span>
|
2023-05-22 10:16:09 -04:00
|
|
|
</button>
|
2023-06-02 15:33:48 -04:00
|
|
|
)
|
2023-05-19 12:33:56 -04:00
|
|
|
}
|