mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
18 lines
368 B
JavaScript
18 lines
368 B
JavaScript
import React, { memo } from "react";
|
|
import { Picker } from "emoji-mart";
|
|
|
|
export const EmojiSelect = ({ visible, onEmojiClick }) => {
|
|
if (!visible) return null;
|
|
|
|
return (
|
|
<Picker
|
|
onClick={onEmojiClick}
|
|
set="google"
|
|
theme="dark"
|
|
showPreview={false}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default memo(EmojiSelect); // The picker is an expensive render
|