import { FC, Fragment } from "react"; import { Popover, Transition } from "@headlessui/react"; // helper import { renderEmoji } from "helpers/emoji.helper"; // icons import { SmilePlus } from "lucide-react"; // constants import { issueReactionEmojis } from "constants/issue"; interface IIssueReactionSelector { size?: "sm" | "md" | "lg"; position?: "top" | "bottom"; onSelect: (reaction: any) => void; } export const IssueReactionSelector: FC = (props) => { const { size = "md", position = "top", onSelect } = props; return ( <> {({ open, close: closePopover }) => ( <>
{issueReactionEmojis.map((emoji) => ( ))}
)}
); };