import { useEditor, usePresence, useValue } from '@tldraw/editor' /** @public @react */ export function DefaultFollowingIndicator() { const editor = useEditor() const followingUserId = useValue('follow', () => editor.getInstanceState().followingUserId, [ editor, ]) if (!followingUserId) return null return } function FollowingIndicatorInner({ userId }: { userId: string }) { const presence = usePresence(userId) if (!presence) return null return
}