| 1 | "use client"; |
| 2 | |
| 3 | import { type AuthView, |
| 4 | import { useAuth } |
| 5 | |
| 6 | import { ProviderButton } |
| 7 | |
| 8 | /** Render sign-in buttons for configured social providers. Each button owns its own sign-in mutation and reads the shared sign-in pending state from React Query. */ |
| 9 | export function ProviderButtons({ |
| 10 | const { socialProviders |
| 11 | |
| 12 | return ( |
| 13 | <div className="flex flex-col gap-3 |
| 14 | {socialProviders?.map(( |
| 15 | <ProviderButton |
| 16 | key={getProviderId(provider |
| 17 | provider={provider} |
| 18 | view={view} |
| 19 | /> |
| 20 | ))} |
| 21 | </div> |
| 22 | ); |
| 23 | } |