'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 } from '@/components/ui/icons' import { useSearchParams } from 'next/navigation' interface LoginButtonProps extends ButtonProps { showGithubIcon?: boolean text?: string } export function LoginButton({ text = 'Login with GitHub', showGithubIcon = true, className, ...props }: LoginButtonProps) { const [isLoading, setIsLoading] = React.useState(false) const searchParams = useSearchParams() const next = searchParams.get('next') || '' return ( ) }