signal-desktop/ts/state/smart/renderEmojiPicker.tsx
2021-09-09 13:53:26 -07:00

27 lines
620 B
TypeScript

// 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,
onClickSettings,
onPickEmoji,
onSetSkinTone,
onClose,
style,
}: RenderEmojiPickerProps): JSX.Element {
return (
<SmartEmojiPicker
ref={ref}
onClickSettings={onClickSettings}
onPickEmoji={onPickEmoji}
onSetSkinTone={onSetSkinTone}
onClose={onClose}
style={style}
/>
);
}