UNPKG

react-emoji-toggle-button

Version:

A flexible and reusable React package to use an emoji picker and connect it with a text input using Ref. Toggle emoji button for React apps.

9 lines (8 loc) 336 B
import { SetStateAction } from 'react'; interface IProps { allCategories: string[]; setActiveCategory: (value: SetStateAction<string>) => void; activeCategory: string; } declare const useInitialActiveCategory: ({ activeCategory, allCategories, setActiveCategory, }: IProps) => void; export default useInitialActiveCategory;