feat: init mouse movements

This commit is contained in:
swve 2024-04-04 20:16:47 +02:00
parent 2afc6ec5e9
commit 54718d7111
3 changed files with 129 additions and 3 deletions

View file

@ -58,6 +58,7 @@ interface Editor {
ydoc: any
hocuspocusProvider: any,
isCollabEnabledOnThisOrg: boolean
userRandomColor: string
setContent: (content: string) => void
}
@ -142,7 +143,7 @@ function Editor(props: Editor) {
provider: props.hocuspocusProvider,
user: {
name: props.session.user.first_name + ' ' + props.session.user.last_name,
color: randomColor({ luminosity: 'light' }),
color: props.userRandomColor ,
},
}),
] : []),