// Copyright 2020-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import type { CSSProperties, ReactNode } from 'react'; import React, { forwardRef } from 'react'; import classNames from 'classnames'; import { Emoji } from './emoji/Emoji'; import type { LocalizerType } from '../types/Util'; export enum ReactionPickerPickerStyle { Picker, Menu, } export const ReactionPickerPickerEmojiButton = React.forwardRef< HTMLButtonElement, { emoji: string; isSelected: boolean; onClick: () => unknown; title?: string; } >(function ReactionPickerPickerEmojiButtonInner( { emoji, onClick, isSelected, title }, ref ) { return ( ); }); export function ReactionPickerPickerMoreButton({ i18n, onClick, }: Readonly<{ i18n: LocalizerType; onClick: () => unknown; }>): JSX.Element { return ( ); } export const ReactionPickerPicker = forwardRef< HTMLDivElement, { children: ReactNode; isSomethingSelected: boolean; pickerStyle: ReactionPickerPickerStyle; style?: CSSProperties; } >(function ReactionPickerPickerInner( { children, isSomethingSelected, pickerStyle, style }, ref ) { return (
{children}
); });