(editor: Editor)
| 22 | >() |
| 23 | |
| 24 | const getStore = (editor: Editor) => { |
| 25 | let store = EDITOR_TO_SLOTS_STORE.get(editor) |
| 26 | if (!store) { |
| 27 | store = create<SlotStore<SlotComponentProps>>(() => ({ |
| 28 | components: [], |
| 29 | })) |
| 30 | EDITOR_TO_SLOTS_STORE.set(editor, store) |
| 31 | } |
| 32 | return store |
| 33 | } |
| 34 | |
| 35 | export const Slot = { |
| 36 | getStore, |