/* eslint-disable no-inner-declarations */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ import * as React from 'react' import type { TLShape, TLUser } from '~types' interface UserProps { user: TLUser } export function User({ user }: UserProps) { const rCursor = React.useRef(null) React.useLayoutEffect(() => { if (rCursor.current) { rCursor.current.style.transform = `translate(${user.point[0]}px, ${user.point[1]}px)` } }, [user.point]) return ( ) }