mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 22:18:54 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import * as React from 'react';
|
||||
import type { TldrawApp } from '@toeverything/components/board-state';
|
||||
|
||||
export const TldrawContext = React.createContext<TldrawApp>({} as TldrawApp);
|
||||
|
||||
export function useTldrawApp() {
|
||||
const context = React.useContext(TldrawContext);
|
||||
return context;
|
||||
}
|
||||
Reference in New Issue
Block a user