(date: Date)
| 188 | } |
| 189 | |
| 190 | export const getTransactionStatus = (date: Date) => { |
| 191 | const today = new Date(); |
| 192 | const twoDaysAgo = new Date(today); |
| 193 | twoDaysAgo.setDate(today.getDate() - 2); |
| 194 | |
| 195 | return date > twoDaysAgo ? "Processing" : "Success"; |
| 196 | }; |
| 197 | |
| 198 | export const authFormSchema = (type: string) => z.object({ |
| 199 | // sign up |