({ sentAt, now }: Required<WaitMesssageArgs>)
| 33 | } |
| 34 | |
| 35 | function getWaitPeriod({ sentAt, now }: Required<WaitMesssageArgs>) { |
| 36 | if (sentAt == null) return 0; |
| 37 | return 5 - differenceInMinutes(now, sentAt); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Validate an image url. |