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

25 lines
641 B
TypeScript
Raw Normal View History

2022-05-04 13:43:22 -04: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 { Meta } from '@storybook/react';
2022-05-04 13:43:22 -04:00
import type { PropsType } from './AnimatedEmojiGalore';
import { AnimatedEmojiGalore } from './AnimatedEmojiGalore';
2022-06-06 20:48:02 -04:00
export default {
title: 'Components/AnimatedEmojiGalore',
} satisfies Meta<PropsType>;
2022-05-04 13:43:22 -04:00
function getDefaultProps(): PropsType {
return {
emoji: '❤️',
onAnimationEnd: action('onAnimationEnd'),
};
}
2022-11-17 16:45:19 -08:00
export function Hearts(): JSX.Element {
return <AnimatedEmojiGalore {...getDefaultProps()} />;
}