// Copyright 2020-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { select } from '@storybook/addon-knobs'; import { setup as setupI18n } from '../../../js/modules/i18n'; import enMessages from '../../../_locales/en/messages.json'; import { Props as ReactionPickerProps, ReactionPicker, ReactionPickerSelectionStyle, } from './ReactionPicker'; import { EmojiPicker } from '../emoji/EmojiPicker'; const i18n = setupI18n('en', enMessages); const preferredReactionEmoji = [ 'heart', 'thumbsup', 'thumbsdown', 'joy', 'open_mouth', 'cry', ]; const renderEmojiPicker: ReactionPickerProps['renderEmojiPicker'] = ({ onClose, onPickEmoji, onSetSkinTone, ref, }) => ( ); storiesOf('Components/Conversation/ReactionPicker', module) .add('Base', () => { return ( ); }) .add('Selected Reaction', () => { return ['❤️', '👍', '👎', '😂', '😮', '😢', '😡'].map(e => (
)); }) .add('Skin Tones', () => { return ['❤️', '👍', '👎', '😂', '😮', '😢', '😡'].map(e => (
)); });