import { useSearchParams } from 'react-router' import { useState } from 'react' export default function SignupPage() { const [searchParams] = useSearchParams() const signupCode = searchParams.get('c') const [isSubmitting, setIsSubmitting] = useState(false) if (!signupCode) { return } return ( e.preventDefault()}> Username Email (optional) Password {isSubmitting ? 'Creating account...' : 'Create account'} ) } function RejectionMessage() { return ( An invitation is required to create an account. I'm surprised you even found your way here without one and honestly I'd prefer it if you would leave If you do want to create an account, you should know who to contact ) }
An invitation is required to create an account.
I'm surprised you even found your way here without one and honestly I'd prefer it if you would leave
If you do want to create an account, you should know who to contact