[Upd] User states
This commit is contained in:
parent
d07202386f
commit
ec019a4dff
16 changed files with 667 additions and 87 deletions
13
apps/web/src/components/status-options.ts
Normal file
13
apps/web/src/components/status-options.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export const onlineStatusOptions = [
|
||||
{ label: "Online", value: "user_online" },
|
||||
{ label: "Idle", value: "user_idle" },
|
||||
{ label: "Do not disturb", value: "user_dnd" },
|
||||
{ label: "Away", value: "user_wc" },
|
||||
{ label: "Offline", value: "user_invisible" },
|
||||
] as const;
|
||||
|
||||
export type OnlineStatus = (typeof onlineStatusOptions)[number]["value"];
|
||||
|
||||
export const onlineStatusLabels = Object.fromEntries(
|
||||
onlineStatusOptions.map((option) => [option.value, option.label]),
|
||||
) as Record<OnlineStatus, string>;
|
||||
Loading…
Reference in a new issue