signal-desktop/ts/components/AnimatedEmojiGalore.stories.tsx

24 lines
565 B
TypeScript
Raw Normal View History

2022-05-04 17:43:22 +00:00
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { action } from '@storybook/addon-actions';
import type { PropsType } from './AnimatedEmojiGalore';
import { AnimatedEmojiGalore } from './AnimatedEmojiGalore';
2022-06-07 00:48:02 +00:00
export default {
title: 'Components/AnimatedEmojiGalore',
};
2022-05-04 17:43:22 +00:00
function getDefaultProps(): PropsType {
return {
emoji: '❤️',
onAnimationEnd: action('onAnimationEnd'),
};
}
2022-06-07 00:48:02 +00:00
export const Hearts = (): JSX.Element => (
<AnimatedEmojiGalore {...getDefaultProps()} />
);