"use client"; // import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"; import { type EmojiPickerListCategoryHeaderProps, type EmojiPickerListEmojiProps, type EmojiPickerListRowProps, EmojiPicker as EmojiPickerPrimitive, // type SkinTone, // useActiveEmoji, // useSkinTone, } from "frimousse"; import { LoaderIcon, SearchIcon } from "lucide-react"; import type * as React from "react"; // import { Button } from "~/components/ui/button"; // import { // Popover, // PopoverContent, // PopoverTrigger, // } from "~/components/ui/popover"; import { cn } from "~/lib/utils"; // from https://ui-x.junwen-k.dev/docs/components/emoji-picker function EmojiPicker({ className, ...props }: React.ComponentProps) { return ( ); } function EmojiPickerSearch({ className, ...props }: React.ComponentProps) { return (
); } function EmojiPickerRow({ children, ...props }: EmojiPickerListRowProps) { return (
{children}
); } function EmojiPickerEmoji({ emoji, className, ...props }: EmojiPickerListEmojiProps) { return ( ); } function EmojiPickerCategoryHeader({ category, ...props }: EmojiPickerListCategoryHeaderProps) { return (
{category.label}
); } function EmojiPickerContent({ className, ...props }: React.ComponentProps) { return ( No emoji found. ); } /*function EmojiPickerFooter({ className, ...props }: React.ComponentProps<"div">) { return (
); } function EmojiPickerActiveEmojiPreview({ className, ...props }: React.ComponentProps<"div">) { const emoji = useActiveEmoji(); if (!emoji) { return (
Select an emoji…
); } return (
{emoji.emoji}
{emoji.label}
); } function EmojiPickerSkinToneSelector() { const [skinTone, setSkinTone, skinToneVariations] = useSkinTone(); return ( value && setSkinTone(value as SkinTone)} aria-label="Select skin tone" orientation="horizontal" > {skinToneVariations.map((variation) => ( {variation.emoji} ))} ); } */ export { EmojiPicker, EmojiPickerSearch, EmojiPickerContent, //EmojiPickerFooter, };