import { atom, Editor, useValue } from 'tldraw' export const globalEditor = atom('globalEditor', null) export function useGlobalEditor() { return useValue(globalEditor) }