25 lines
745 B
TypeScript
25 lines
745 B
TypeScript
import { SignupForm } from './SignupForm';
|
|
|
|
export default async function SignupPage({
|
|
searchParams,
|
|
}: {
|
|
searchParams: Promise<{ redirect?: string }>;
|
|
}) {
|
|
const { redirect } = await searchParams;
|
|
return (
|
|
<div className="min-h-screen flex items-center justify-center bg-gray-50 p-4">
|
|
<div className="w-full max-w-md bg-white rounded shadow p-6">
|
|
<h1 className="text-xl font-semibold mb-1">Create your TOWER community</h1>
|
|
<p className="text-sm text-gray-500 mb-6">
|
|
Already have an account?{' '}
|
|
<a href="/login" className="text-blue-600 hover:underline">
|
|
Sign in
|
|
</a>
|
|
.
|
|
</p>
|
|
<SignupForm redirect={redirect} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|