stories: sending/failed states in stories list
This commit is contained in:
parent
bfe9cf9f38
commit
538a809395
5 changed files with 113 additions and 8 deletions
|
@ -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 =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue