@@ -4,6 +4,7 @@ import { useEffect, useState } from 'react'
44import { ChipInput , cn , InputOTP , InputOTPGroup , InputOTPSlot , Label } from '@sim/emcn'
55import { createLogger } from '@sim/logger'
66import { toError } from '@sim/utils/errors'
7+ import { PublicAuthHeader } from '@/components/auth/public-auth-header'
78import { quickValidateEmail } from '@/lib/messaging/email/validation'
89import { AuthSubmitButton } from '@/app/(auth)/components'
910import { AUTH_TEXT_LINK } from '@/app/(auth)/components/auth-button-classes'
@@ -110,16 +111,14 @@ export default function EmailAuth({ identifier }: EmailAuthProps) {
110111 < div className = 'flex flex-1 items-center justify-center px-4 py-16' >
111112 < div className = 'w-full max-w-[410px]' >
112113 < div className = 'flex flex-col items-center justify-center' >
113- < div className = 'space-y-1 text-center' >
114- < h1 className = 'text-balance text-[40px] text-[var(--text-primary)] leading-[110%] tracking-[-0.02em]' >
115- { showOtpVerification ? 'Verify Your Email' : 'Email Verification' }
116- </ h1 >
117- < p className = 'text-[color-mix(in_srgb,var(--text-muted)_60%,transparent)] text-lg leading-[125%] tracking-[0.02em]' >
118- { showOtpVerification
114+ < PublicAuthHeader
115+ title = { showOtpVerification ? 'Verify Your Email' : 'Email Verification' }
116+ description = {
117+ showOtpVerification
119118 ? `A verification code has been sent to ${ email } `
120- : 'This chat requires email verification' }
121- </ p >
122- </ div >
119+ : 'This chat requires email verification'
120+ }
121+ / >
123122
124123 < div className = 'mt-8 w-full max-w-[410px]' >
125124 { ! showOtpVerification ? (
0 commit comments