{"version":3,"file":"js/chunk.274.19bb674b.js","mappings":"gKAIA,IAAMA,EAA4BC,CAAAA,EAAAA,EAAAA,EAAAA,EAAmC,MAE9D,SAASC,IAId,GAAM,CAACC,EAAiBC,EAAmB,CAAGC,CAAAA,EAAAA,EAAAA,EAAAA,EAC5CL,GAGF,MAAO,CAACG,EAAiBC,EAAmB,C","sources":["webpack://@affine/web/../core/src/hooks/use-block-suite-editor.ts"],"sourcesContent":["import type { AffineEditorContainer } from '@blocksuite/presets';\nimport type { SetStateAction } from 'jotai';\nimport { atom, useAtom } from 'jotai';\n\nconst activeEditorContainerAtom = atom(null);\n\nexport function useActiveBlocksuiteEditor(): [\n AffineEditorContainer | null,\n React.Dispatch>,\n] {\n const [editorContainer, setEditorContainer] = useAtom(\n activeEditorContainerAtom\n );\n\n return [editorContainer, setEditorContainer];\n}\n"],"names":["activeEditorContainerAtom","atom","useActiveBlocksuiteEditor","editorContainer","setEditorContainer","useAtom"],"sourceRoot":""}