stories: sending/failed states in stories list

This commit is contained in:
Jamie Kyle 2022-10-14 14:04:26 -07:00 committed by GitHub
parent bfe9cf9f38
commit 538a809395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 8 deletions

View file

@ -51,6 +51,8 @@ const STATUS_NUMBERS: Record<SendStatus, number> = {
export const maxStatus = (a: SendStatus, b: SendStatus): SendStatus =>
STATUS_NUMBERS[a] > STATUS_NUMBERS[b] ? a : b;
export const isPending = (status: SendStatus): boolean =>
status === SendStatus.Pending;
export const isViewed = (status: SendStatus): boolean =>
status === SendStatus.Viewed;
export const isRead = (status: SendStatus): boolean =>