plane/web/hooks/use-editor-suggestions.tsx
Aaryan Khandelwal d5fd69354e
chore: removed unused hooks and components (#2611)
* chore: remove unused hooks

* chore: removed useProjectMembers hook

* chore: removed issue hooks

* fix: build errors
2023-11-02 17:11:33 +05:30

16 lines
542 B
TypeScript

import { IMentionHighlight, IMentionSuggestion } from "@plane/rich-text-editor";
import useUser from "./use-user";
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
const useEditorSuggestions = (_workspaceSlug: string | undefined, _projectId: string | undefined) => {
const { mentionsStore }: RootStore = useMobxStore();
return {
mentionSuggestions: mentionsStore.mentionSuggestions,
mentionHighlights: mentionsStore.mentionHighlights,
};
};
export default useEditorSuggestions;