* feat(accounts): allow linking email password * feat(auth): add OTP sign-in * refactor(accounts): remove 'sonner' dependency and update toast imports * feat(supabase): enable analytics and configure database seeding * feat(auth): update email templates and add OTP template * feat(auth): add last sign in method hints * feat(config): add devIndicators position to bottom-right * feat(auth): implement comprehensive last authentication method tracking tests
26 lines
586 B
TypeScript
26 lines
586 B
TypeScript
import { Button } from '@kit/ui/button';
|
|
import { OauthProviderLogoImage } from '@kit/ui/oauth-provider-logo-image';
|
|
|
|
export function AuthProviderButton({
|
|
providerId,
|
|
onClick,
|
|
children,
|
|
}: React.PropsWithChildren<{
|
|
providerId: string;
|
|
onClick: () => void;
|
|
}>) {
|
|
return (
|
|
<Button
|
|
className={'flex w-full gap-x-3 text-center'}
|
|
data-provider={providerId}
|
|
data-test={'auth-provider-button'}
|
|
variant={'outline'}
|
|
onClick={onClick}
|
|
>
|
|
<OauthProviderLogoImage providerId={providerId} />
|
|
|
|
<span>{children}</span>
|
|
</Button>
|
|
);
|
|
}
|