session-desktop/ts/components/conversation/SessionEmojiPanel.tsx

30 lines
738 B
TypeScript
Raw Normal View History

2020-02-19 02:05:48 +01:00
import React from 'react';
2020-03-12 07:15:02 +01:00
import classNames from 'classnames';
import { Picker } from 'emoji-mart';
import { Constants } from '../../session';
2020-03-12 07:15:02 +01:00
type Props = {
2020-03-12 07:15:02 +01:00
onEmojiClicked: (emoji: any) => void;
show: boolean;
};
2020-02-19 02:05:48 +01:00
export const SessionEmojiPanel = (props: Props) => {
const { onEmojiClicked, show } = props;
2020-02-19 02:05:48 +01:00
return (
<div className={classNames('session-emoji-panel', show && 'show')}>
<Picker
backgroundImageFn={() => './images/emoji/emoji-sheet-twitter-32.png'}
set={'twitter'}
sheetSize={32}
darkMode={true}
color={Constants.UI.COLORS.GREEN}
showPreview={true}
title={''}
onSelect={onEmojiClicked}
autoFocus={true}
/>
</div>
);
};