mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 11:58:41 +00:00
12 lines
347 B
TypeScript
12 lines
347 B
TypeScript
import { __unstableSchemas, AffineSchemas } from '@blocksuite/blocks/models';
|
|
import { atom } from 'jotai/vanilla';
|
|
|
|
export const workspaceAtom = atom(async () => {
|
|
const { Workspace } = await import('@blocksuite/store');
|
|
return new Workspace({
|
|
id: 'test-workspace',
|
|
})
|
|
.register(AffineSchemas)
|
|
.register(__unstableSchemas);
|
|
});
|