import { observer } from "mobx-react"; // components import { GithubOAuthButton, GoogleOAuthButton } from "@/components/account"; // hooks import { useInstance } from "@/hooks/store"; type TOAuthOptionProps = { isSignUp?: boolean; }; export const OAuthOptions: React.FC = observer(() => { // hooks const { config } = useInstance(); const isOAuthEnabled = (config && (config?.is_google_enabled || config?.is_github_enabled)) || false; if (!isOAuthEnabled) return null; return ( <>

or


{config?.is_google_enabled && (
)} {config?.is_github_enabled && }
); });