Interface ProfileCreateProps

Props for ProfileCreate.

interface ProfileCreateProps {
    defaultEmail?: string;
    defaultUsername?: string;
    error?: null | string;
    loading?: boolean;
    onBack?: () => void;
    onSubmit: (data: { email: string; name: string }) => Promise<void>;
}

Properties

defaultEmail?: string

Pre-filled email address.

defaultUsername?: string

Existing username to show (disabled) and to use as a name fallback.

error?: null | string

Error message to display beneath the form.

loading?: boolean

Shows a spinner and disables the actions.

onBack?: () => void

When provided, renders a "Back" button that calls this.

onSubmit: (data: { email: string; name: string }) => Promise<void>

Called with the collected { name, email } on submit.