import emojiRegex from "emoji-regex"; export function isSingleEmoji(value: string): boolean { if (!value || value.length > 64) return false; const matches = [...value.matchAll(emojiRegex())]; return matches.length === 1 && matches[0][0] === value; }