2021-03-24 22:06:12 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { RenderEmojiPickerProps } from '../../components/conversation/ReactionPicker';
|
2021-03-24 22:06:12 +00:00
|
|
|
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,
|
2021-09-09 20:53:26 +00:00
|
|
|
onSetSkinTone,
|
2021-03-24 22:06:12 +00:00
|
|
|
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}
|
2021-09-09 20:53:26 +00:00
|
|
|
onSetSkinTone={onSetSkinTone}
|
2021-03-24 22:06:12 +00:00
|
|
|
onClose={onClose}
|
|
|
|
style={style}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|