"use client"; import { useSignupFlow } from "@/hooks/use-signup-flow"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { ArrowRight, Home, Inbox } from "lucide-react"; import Link from "next/link"; export default function SignupPage() { const { step, owner, organization, isLoading, error, emailSent, canContinueAccount, canContinueOrganization, goNext, goBack, sendMagicLink, updateOwner, updateOrganization, } = useSignupFlow(); // Success view after email sent if (emailSent) { return (

Check your email

We sent a verification link to {owner.email}. Click the link to complete your signup.

); } return (

Create your account

Get started with Your App

Home
{error && (

{error}

)} {/* Step 1: Account */} {step === "account" && (
updateOwner({ fullName: e.target.value })} disabled={isLoading} />
updateOwner({ email: e.target.value })} disabled={isLoading} />
)} {/* Step 2: Organization */} {step === "organization" && (
updateOrganization({ displayName: e.target.value })} disabled={isLoading} />
)} {!emailSent && (

Already have an account?{" "} Sign in

)}
); }