// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; import type { Meta } from '@storybook/react'; import type { Props } from './Emoji'; import { Emoji, EmojiSizes } from './Emoji'; const tones = [0, 1, 2, 3, 4, 5]; export default { title: 'Components/Emoji/Emoji', argTypes: { size: { control: { type: 'select' }, options: EmojiSizes }, emoji: { control: { type: 'text' } }, shortName: { control: { type: 'text' } }, skinTone: { control: { type: 'select' }, options: tones }, }, args: { size: 48, emoji: '', shortName: '', skinTone: 0, }, } satisfies Meta; export function Sizes(args: Props): JSX.Element { return ( <> {EmojiSizes.map(size => ( ))} ); } export function SkinTones(args: Props): JSX.Element { return ( <> {tones.map(skinTone => ( ))} ); } export function FromEmoji(args: Props): JSX.Element { return ; }