2021-03-24 22:06:12 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { RenderEmojiPickerProps } from '../../components/conversation/ReactionPicker';
|
|
|
|
import { SmartEmojiPicker } from './EmojiPicker';
|
|
|
|
|
|
|
|
export function renderEmojiPicker({
|
|
|
|
ref,
|
2021-09-09 16:29:01 +00:00
|
|
|
onClickSettings,
|
2021-03-24 22:06:12 +00:00
|
|
|
onPickEmoji,
|
|
|
|
onClose,
|
|
|
|
style,
|
|
|
|
}: RenderEmojiPickerProps): JSX.Element {
|
|
|
|
return (
|
|
|
|
<SmartEmojiPicker
|
|
|
|
ref={ref}
|
2021-09-09 16:29:01 +00:00
|
|
|
onClickSettings={onClickSettings}
|
2021-03-24 22:06:12 +00:00
|
|
|
onPickEmoji={onPickEmoji}
|
|
|
|
onClose={onClose}
|
|
|
|
style={style}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|