mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
15 lines
516 B
TypeScript
15 lines
516 B
TypeScript
import { getEnvironment } from '@affine/env';
|
|
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>>(
|
|
getEnvironment().isServer
|
|
? async () =>
|
|
import('@blocksuite/editor').then(module => module.EditorContainer)
|
|
: (import('@blocksuite/editor').then(
|
|
module => module.EditorContainer
|
|
) as any)
|
|
);
|