import { Icon } from '../../_shared/Icon' import { hideModal } from '../../../stores/ui' import styles from './SocialProviders.module.scss' import { apiBaseUrl } from '../../../utils/config' import { useLocalize } from '../../../context/localize' type Provider = 'facebook' | 'google' | 'vk' | 'github' // 3rd party provider auth handler const handleSocialAuthLinkClick = (event: MouseEvent, provider: Provider): void => { event.preventDefault() const popup = window.open(`${apiBaseUrl}/oauth/${provider}`, provider, 'width=740, height=420') popup?.focus() hideModal() } export const SocialProviders = () => { const { t } = useLocalize() return (