'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/Button'; import { IconGitHub, IconSpinner, IconGoogle } from '@/components/ui/Icons'; interface LoginButtonProps extends ButtonProps { oauth: 'github' | 'google'; } export function LoginButton({ oauth, ...props }: LoginButtonProps) { const [isLoading, setIsLoading] = React.useState(false); const icon = oauth === 'github' ? ( ) : ( ); return ( ); }