import React from 'react'; import { Emoji } from './emoji-picker-dropdown'; import ModifierPickerMenu from './modifier-picker-menu'; const backgroundImageFn = () => require('emoji-datasource/img/twitter/sheets/32.png'); interface IModifierPicker { active: boolean, modifier?: number, onOpen: () => void, onClose: () => void, onChange: (skinTone: number) => void, } const ModifierPicker: React.FC = ({ active, modifier, onOpen, onClose, onChange }) => { const handleClick = () => { if (active) { onClose(); } else { onOpen(); } }; const handleSelect = (modifier: number) => { onChange(modifier); onClose(); }; return (
); }; export default ModifierPicker;