'use client';
import * as React from 'react';
import { signIn } from 'next-auth/react';
import { cn } from '@/lib/utils';
import { Button, type ButtonProps } from '@/components/ui/Buttons';
import { IconGitHub, IconSpinner, IconGoogle } from '@/components/ui/Icon';
interface LoginButtonProps extends ButtonProps {
oauth: 'github' | 'google';
}
export function LoginButton({ oauth, ...props }: LoginButtonProps) {
const [isLoading, setIsLoading] = React.useState(false);
const icon =
oauth === 'github' ? (
) : (
);
return (
);
}