Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

484 B
Raw Blame
'use client';

import { Navigate } from 'react-router';

import { useAuthServerConfigStore } from '@/features/AuthShell/AuthServerConfigProvider';

import BetterAuthSignUpForm from './BetterAuthSignUpForm';

const SignUp = () => {
  const disableEmailPassword = useAuthServerConfigStore(
    (s) => s.serverConfig.disableEmailPassword || false,
  );

  if (disableEmailPassword) return <Navigate replace to="/signin" />;

  return <BetterAuthSignUpForm />;
};

export default SignUp;