// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import { action } from '@storybook/addon-actions';
import type { Meta } from '@storybook/react';
import { setupI18n } from '../../util/setupI18n';
import enMessages from '../../../_locales/en/messages.json';
import type { Props as ReactionPickerProps } from './ReactionPicker';
import { ReactionPicker } from './ReactionPicker';
import { EmojiPicker } from '../emoji/EmojiPicker';
import { DEFAULT_PREFERRED_REACTION_EMOJI } from '../../reactions/constants';
const i18n = setupI18n('en', enMessages);
const renderEmojiPicker: ReactionPickerProps['renderEmojiPicker'] = ({
onClose,
onPickEmoji,
onSetSkinTone,
ref,
}) => (
);
export default {
title: 'Components/Conversation/ReactionPicker',
} satisfies Meta;
export function Base(): JSX.Element {
return (
);
}
export function SelectedReaction(): JSX.Element {
return (
<>
{['❤️', '👍', '👎', '😂', '😮', '😢', '😡'].map(e => (
))}
>
);
}