import React, { type ComponentPropsWithoutRef, type FC, type ReactNode } from 'react'; import { clsx } from 'clsx'; import { WechatBrandIcon, WecomBrandIcon } from '../../icons'; import { cn } from '../../utils/cn'; export interface SocialLoginProps extends ComponentPropsWithoutRef<'div'> { socials?: Array<{ name: string; icon?: ReactNode; onClick: () => void; }>; } export const LoginPageSocialLogin: FC = ({ socials, className, ...props }) => { if (!socials || socials.length === 0) { return null; } return (
{socials.map((social, index) => ( ))}
); };