mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 21:41:08 +10:00
fix collab user
This commit is contained in:
13
apps/client/src/features/editor/extensions/utils.ts
Normal file
13
apps/client/src/features/editor/extensions/utils.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export const userColors = [
|
||||
"#958DF1",
|
||||
"#F98181",
|
||||
"#FBBC88",
|
||||
"#FAF594",
|
||||
"#70CFF8",
|
||||
"#94FADB",
|
||||
"#B9F18D",
|
||||
];
|
||||
|
||||
export function randomElement(array: Array<any>) {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
}
|
||||
Reference in New Issue
Block a user