mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
14 lines
474 B
TypeScript
14 lines
474 B
TypeScript
import type { EditorContainer } from '@blocksuite/editor';
|
|
import { atom } from 'jotai';
|
|
|
|
export const lottieAtom = atom(import('lottie-web').then(m => m.default));
|
|
|
|
export const editorContainerModuleAtom = atom<Promise<typeof EditorContainer>>(
|
|
typeof window === 'undefined'
|
|
? async () =>
|
|
import('@blocksuite/editor').then(module => module.EditorContainer)
|
|
: (import('@blocksuite/editor').then(
|
|
module => module.EditorContainer
|
|
) as any)
|
|
);
|