{JSON.stringify(session, null, 2)}
13 | {JSON.stringify(session, null, 2)}
14 | {result.status === 'success' ? result.data : result.error as string}
22 |Verifying your email address. Please wait...
18 | {!result &&Click the link below to verify your email address
16 | Verify email 17 | ` 18 | }) 19 | } 20 | 21 | export async function sendPasswordResetEmail(email: string, token: string) { 22 | const link = `${baseUrl}/reset-password?token=${token}`; 23 | 24 | return resend.emails.send({ 25 | from: 'mail@nextmatch.trycatchlearn.com', 26 | to: email, 27 | subject: 'Reset your password', 28 | html: ` 29 |Click the link below to reset password
31 | Reset password 32 | ` 33 | }) 34 | } -------------------------------------------------------------------------------- /src/hooks/useMessageStore.ts: -------------------------------------------------------------------------------- 1 | import { MessageDto } from '@/types' 2 | import { create } from 'zustand'; 3 | import { devtools } from 'zustand/middleware'; 4 | 5 | type MessageState = { 6 | messages: MessageDto[]; 7 | unreadCount: number; 8 | add: (message: MessageDto) => void; 9 | remove: (id: string) => void; 10 | set: (messages: MessageDto[]) => void; 11 | updateUnreadCount: (amount: number) => void; 12 | resetMessages: () => void; 13 | } 14 | 15 | const useMessageStore = create{subHeaderText}
} 28 |{message.text}
62 |With photo
48 |Welcome back to NextMatch
41 |Welcome to NextMatch
71 |