import Image from 'next/image'; import { AtSign, Phone } from 'lucide-react'; const DEFAULT_IMAGE_SIZE = 18; export function OauthProviderLogoImage({ providerId, width, height, }: { providerId: string; width?: number; height?: number; }) { const image = getOAuthProviderLogos()[providerId]; if (typeof image === `string`) { return ( {`${providerId} ); } return <>{image}; } function getOAuthProviderLogos(): Record { return { password: , phone: , google: '/images/oauth/google.webp', facebook: '/images/oauth/facebook.webp', twitter: '/images/oauth/twitter.webp', github: '/images/oauth/github.webp', microsoft: '/images/oauth/microsoft.webp', apple: '/images/oauth/apple.webp', }; }