import { useMemo } from 'react' import Image from 'next/image' import classNames from 'classnames' export type SocialMedia = 'Discord' | 'GitHub' | 'Google' type SocialMediaColors = { [key in SocialMedia]: string } export interface SocialMediaButtonProps extends React.ComponentPropsWithRef<'button'> { socialMedia: SocialMedia } const socialMediaColors: SocialMediaColors = { Discord: '#404EED', GitHub: '#24292E', Google: '#FCFCFC' } export const SocialMediaButton: React.FC = (props) => { const { socialMedia, className, ...rest } = props const socialMediaColor = useMemo(() => { return socialMediaColors[socialMedia] }, [socialMedia]) return ( <> ) }