import Picker from "@emoji-mart/react"; import data from "@emoji-mart/data"; import { FC } from "react"; import { useMediaQuery } from "react-responsive"; const emojis = (data as unknown as any).emojis as { [key: string]: EmojiSkin }; export interface EmojiData { id: string; name: string; native: string; unified: string; keywords: string[]; shortcodes: string; skin: number; aliases: string[]; } const exceptEmojis = [ "bat", "feet", "coral", "snail", "bug", "ant", "bee", "beetle", "ladybug", "cricket", "cockroach", "spider", "scorpion", "mosquito", "fly", "worm", "microbe", "gorilla", "orangutan", "tiger2", "leopard", "zebra_face", "pig_nose", "camel", "black_cat", "water_buffalo", "rat", "spider_web", "service_dog", "mammoth", "frog", "crocodile", "lizard", "snake", "t-rex", "dragon", "empty_nest", "octopus", "ox", "wolf", "headstone", "moyai", "new_moon", "new_moon_with_face", "shrimp", "lobster", "fried_shrimp", "coffin", "drop_of_blood", "pinata", "performing_arts", "rock", "clubs", "chess_pawn", "spades", "knot", "bathtub", "shower", "white_flower", "hammer", "nazar_amulet", "hamsa", "hammer_and_wrench", "squid", "crab", "smoking", "dna", "musical_score", "musical_note", "notes", "dark_sunglasses", "kaaba", "old_key", "bikini", "one-piece_swimsuit", "sari", "sloth", "x-ray", ]; interface EmojiSkin { id: string; name: string; keywords: string[]; skins: { native: string; shortcodes: string; unified: string }[]; } const categoryIcons = { categoryIcons: { "new-people": { svg: '', }, }, }; const custom = [ { id: "recommend", name: "Recommend", emojis: [ emojis["baby_chick"], emojis["hatched_chick"], emojis["dog"], emojis["fox_face"], emojis["lion_face"], emojis["tiger"], emojis["hamster"], emojis["panda_face"], emojis["rabbit"], emojis["polar_bear"], emojis["tangerine"], emojis["watermelon"], emojis["pineapple"], emojis["beer"], emojis["curry"], emojis["cake"], emojis["snow_capped_mountain"], emojis["volcano"], emojis["bridge_at_night"], emojis["kiwifruit"], emojis["stadium"], emojis["foggy"], emojis["night_with_stars"], emojis["cityscape"], emojis["sunrise_over_mountains"], emojis["sunrise"], emojis["city_sunset"], emojis["city_sunrise"], ], }, { id: "new-people", name: "People", emojis: [ emojis["child"], emojis["boy"], emojis["girl"], emojis["adult"], emojis["person_with_blond_hair"], emojis["man"], emojis["bearded_person"], emojis["man_with_beard"], emojis["woman_with_beard"], emojis["red_haired_man"], emojis["curly_haired_man"], emojis["white_haired_man"], emojis["bald_man"], emojis["woman"], emojis["red_haired_woman"], emojis["red_haired_person"], emojis["curly_haired_woman"], emojis["curly_haired_person"], emojis["white_haired_woman"], emojis["white_haired_person"], emojis["bald_woman"], emojis["bald_person"], emojis["blond-haired-woman"], emojis["blond-haired-man"], emojis["older_adult"], emojis["older_man"], emojis["older_woman"], emojis["person_frowning"], emojis["man-frowning"], emojis["woman-frowning"], emojis["person_with_pouting_face"], emojis["man-pouting"], emojis["woman-pouting"], emojis["health_worker"], emojis["male-doctor"], emojis["female-doctor"], emojis["student"], emojis["male-student"], emojis["female-student"], emojis["teacher"], emojis["male-teacher"], emojis["female-teacher"], emojis["judge"], emojis["male-judge"], emojis["female-judge"], emojis["farmer"], emojis["male-farmer"], emojis["female-farmer"], emojis["cook"], emojis["male-cook"], emojis["female-cook"], emojis["mechanic"], emojis["male-mechanic"], emojis["female-mechanic"], emojis["office_worker"], emojis["male-office-worker"], emojis["female-office-worker"], emojis["scientist"], emojis["male-scientist"], emojis["female-scientist"], emojis["technologist"], emojis["male-technologist"], emojis["female-technologist"], emojis["artist"], emojis["male-artist"], emojis["female-artist"], emojis["astronaut"], emojis["male-astronaut"], emojis["female-astronaut"], emojis["sleuth_or_spy"], emojis["male-detective"], emojis["female-detective"], emojis["construction_worker"], emojis["male-construction-worker"], emojis["female-construction-worker"], emojis["person_with_crown"], emojis["prince"], emojis["princess"], emojis["person_in_tuxedo"], emojis["man_in_tuxedo"], emojis["woman_in_tuxedo"], emojis["bride_with_veil"], emojis["man_with_veil"], emojis["woman_with_veil"], ], }, ]; export const EmojiSelector: FC<{ onSelect: (e: EmojiData) => void }> = ({ onSelect, }) => { const isSmallScreen = useMediaQuery({ query: "(max-width: 768px)" }); return ( ); };