@chayns-components/emoji-input
Version:
Input field that supports HTML elements and emojis
23 lines (22 loc) • 655 B
TypeScript
import type { Category } from '../types/category';
export interface HistoryItem {
count: number;
emoji: string;
modifiedTime: string;
name: string;
skin_tone_support: boolean;
}
interface UseEmojiHistoryOptions {
accessToken?: string;
personId?: string;
selectedCategory: Category;
}
export declare const useEmojiHistory: ({ accessToken, personId, selectedCategory, }: UseEmojiHistoryOptions) => {
addOrUpdateEmojiInHistory: ({ emoji, name, skin_tone_support, }: {
emoji: string;
name: string;
skin_tone_support: boolean;
}) => Promise<void>;
historyEmojis: HistoryItem[];
};
export {};