mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import Link from 'next/link';
|
|
import { redirect } from 'next/navigation';
|
|
|
|
import { SignUpForm } from '~/components/forms/signup';
|
|
|
|
type SignUpPageProps = {
|
|
searchParams: {
|
|
email?: string;
|
|
};
|
|
};
|
|
|
|
export default function SignUpPage({ searchParams }: SignUpPageProps) {
|
|
if (process.env.NEXT_PUBLIC_DISABLE_SIGNUP === 'true') {
|
|
redirect('/signin');
|
|
}
|
|
|
|
const email = typeof searchParams.email === 'string' ? searchParams.email : undefined;
|
|
|
|
return (
|
|
<div>
|
|
<h1 className="text-4xl font-semibold">Create a new account</h1>
|
|
|
|
<p className="text-muted-foreground/60 mt-2 text-sm">
|
|
Create your account and start using state-of-the-art document signing. Open and beautiful
|
|
signing is within your grasp.
|
|
</p>
|
|
|
|
<SignUpForm initialEmail={email} className="mt-4" />
|
|
|
|
<p className="text-muted-foreground mt-6 text-center text-sm">
|
|
Already have an account?{' '}
|
|
<Link href="/signin" className="text-primary duration-200 hover:opacity-70">
|
|
Sign in instead
|
|
</Link>
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|