'use client'; import useGlobalStore from '@/config/use-global'; import { oAuthLogin } from '@/services/common/oauth'; import { Button } from '@workspace/ui/components/button'; import { Icon } from '@workspace/ui/custom-components/icon'; const icons = { apple: 'uil:apple', google: 'logos:google-icon', facebook: 'logos:facebook', github: 'uil:github', telegram: 'logos:telegram', }; export function OAuthMethods() { const { common } = useGlobalStore(); const { oauth_methods } = common; const OAUTH_METHODS = oauth_methods?.filter( (method) => !['mobile', 'email', 'device'].includes(method), ); return ( OAUTH_METHODS?.length > 0 && ( <>
Or continue with
{OAUTH_METHODS?.map((method: any) => { return ( ); })}
) ); }