2020-10-30 20:34:04 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-05-05 19:49:34 +00:00
|
|
|
import * as React from 'react';
|
|
|
|
|
2020-09-01 00:09:28 +00:00
|
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
|
2020-05-05 19:49:34 +00:00
|
|
|
import { setup as setupI18n } from '../../../js/modules/i18n';
|
|
|
|
import enMessages from '../../../_locales/en/messages.json';
|
|
|
|
|
|
|
|
import { EmojiButton } from './EmojiButton';
|
|
|
|
|
|
|
|
const i18n = setupI18n('en', enMessages);
|
|
|
|
|
2020-08-28 02:11:24 +00:00
|
|
|
storiesOf('Components/Emoji/EmojiButton', module).add('Base', () => {
|
2020-05-05 19:49:34 +00:00
|
|
|
return (
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
height: '500px',
|
|
|
|
display: 'flex',
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<EmojiButton
|
|
|
|
i18n={i18n}
|
|
|
|
onPickEmoji={action('onPickEmoji')}
|
|
|
|
skinTone={0}
|
|
|
|
onSetSkinTone={action('onSetSkinTone')}
|
|
|
|
recentEmojis={[
|
|
|
|
'grinning',
|
|
|
|
'grin',
|
|
|
|
'joy',
|
|
|
|
'rolling_on_the_floor_laughing',
|
|
|
|
'smiley',
|
|
|
|
'smile',
|
|
|
|
'sweat_smile',
|
|
|
|
'laughing',
|
|
|
|
'wink',
|
|
|
|
'blush',
|
|
|
|
'yum',
|
|
|
|
'sunglasses',
|
|
|
|
'heart_eyes',
|
|
|
|
'kissing_heart',
|
|
|
|
'kissing',
|
|
|
|
'kissing_smiling_eyes',
|
|
|
|
'kissing_closed_eyes',
|
|
|
|
'relaxed',
|
|
|
|
'slightly_smiling_face',
|
|
|
|
'hugging_face',
|
|
|
|
'grinning_face_with_star_eyes',
|
|
|
|
'thinking_face',
|
|
|
|
'face_with_one_eyebrow_raised',
|
|
|
|
'neutral_face',
|
|
|
|
'expressionless',
|
|
|
|
'no_mouth',
|
|
|
|
'face_with_rolling_eyes',
|
|
|
|
'smirk',
|
|
|
|
'persevere',
|
|
|
|
'disappointed_relieved',
|
|
|
|
'open_mouth',
|
|
|
|
'zipper_mouth_face',
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
});
|