import { Fragment } from "react"; import { Popover, Transition } from "@headlessui/react"; // helper import { renderEmoji } from "helpers/emoji.helper"; // icons import { SmilePlus } from "lucide-react"; const reactionEmojis = ["128077", "128078", "128516", "128165", "128533", "129505", "9992", "128064"]; interface Props { size?: "sm" | "md" | "lg"; position?: "top" | "bottom"; value?: string | string[] | null; onSelect: (emoji: string) => void; } export const ReactionSelector: React.FC = (props) => { const { onSelect, position, size } = props; return ( {({ open, close: closePopover }) => ( <>
{reactionEmojis.map((emoji) => ( ))}
)}
); };