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