import React from 'react'; import { useTranslation } from 'react-i18next'; import { Lock } from 'lucide-react'; import { Button } from '../../ui/button'; export type SocialProvider = 'google' | 'mtLogin' | 'govBr'; export interface SocialLoginButtonsProps { onSocialLogin: (provider: string) => void; /** Which SSO providers to render — projects without gov.br/MT Login can pass a smaller list. */ providers?: SocialProvider[]; } const DEFAULT_PROVIDERS: SocialProvider[] = ['google', 'mtLogin', 'govBr']; export function SocialLoginButtons({ onSocialLogin, providers = DEFAULT_PROVIDERS, }: SocialLoginButtonsProps) { const { t } = useTranslation(); if (providers.length === 0) return null; return ( <>
{t('login.orContinueWith')}
{providers.includes('google') && ( )} {providers.includes('mtLogin') && ( )} {providers.includes('govBr') && ( )}
); }