import Link from "next/link" import { Logo } from "@/components/shared/logo" import { TurnstileWidget } from "@/components/shared/turnstile-widget" import { signUp, signInWithGoogle } from "@/app/actions/auth" export default async function SignupPage({ searchParams, }: { searchParams: Promise<{ error?: string; success?: string; next?: string }> }) { const params = await searchParams const error = params.error const success = params.success const next = typeof params.next === "string" && params.next.startsWith("/") ? params.next : "" if (success === "check-email") { return (
✉️

Check your email

We sent a confirmation link to your email. Click it to activate your account.

Back to sign in
) } return (

Create your account

Start managing your properties for free

{/* Google OAuth */}
or sign up with email
{error && (
{decodeURIComponent(error)}
)}
{next && }

By signing up you agree to our{" "} Terms {" "}and{" "} Privacy Policy.

Already have an account?{" "} Sign in

) } function GoogleIcon() { return ( ) }