UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

19 lines (18 loc) 618 B
import { User } from "../../interfaces/models/User"; import { Mention } from "../../interfaces/models/Mention"; declare const useMentions: ({ content, setContent, focus, cursorPosition, isSelectionActive, }: { content: string; setContent: (value: string) => void; focus: () => void; cursorPosition: number; isSelectionActive: boolean; }) => { isMentionActive: boolean; loading: boolean; mentionSuggestions: User[]; handleMentionClick: (user: User) => void; mentions: Mention[]; addMention: (user: User) => void; resetMentions: () => void; }; export default useMentions;