"use client"; import { Button } from "@workspace/ui/components/button"; import { Icon } from "@workspace/ui/composed/icon"; import { oAuthLogin } from "@workspace/ui/services/common/oauth"; import { useGlobalStore } from "@/stores/global"; 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: string) => !["mobile", "email", "device"].includes(method) ); return ( OAUTH_METHODS?.length > 0 && ( <>