plane/web/hooks/use-editor-suggestions.tsx
2023-12-11 14:36:34 +05:30

14 lines
368 B
TypeScript

import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store_legacy/root";
const useEditorSuggestions = () => {
const { mentionsStore }: RootStore = useMobxStore();
return {
mentionSuggestions: mentionsStore.mentionSuggestions,
mentionHighlights: mentionsStore.mentionHighlights,
};
};
export default useEditorSuggestions;