'use client'; import { signIn } from "next-auth/react" import { Button } from "@/components/ui/button" import { useTranslations } from "next-intl" import { Github } from "lucide-react" interface OAuthButtonsProps { locale: string; mode?: 'login' | 'register'; } export default function OAuthButtons({ locale, mode = 'login' }: OAuthButtonsProps) { const t = useTranslations(`auth.${mode}`); const handleOAuthSignIn = async (provider: 'google' | 'github') => { try { await signIn(provider, { callbackUrl: `/${locale}/dashboard`, redirect: true, }); } catch (error) { console.error(`${provider} OAuth error:`, error); } }; return (
{t('orContinueWith')}
); }