// Copyright 2020 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 { ConversationDetailsIcon, Props } from './ConversationDetailsIcon'; const story = storiesOf( 'Components/Conversation/ConversationDetails/ConversationDetailIcon', module ); const createProps = (overrideProps: Partial): Props => ({ ariaLabel: overrideProps.ariaLabel || '', icon: overrideProps.icon || '', onClick: overrideProps.onClick, }); story.add('All', () => { const icons = ['timer', 'trash', 'invites', 'block', 'leave', 'down']; return icons.map(icon => ( )); }); story.add('Clickable Icons', () => { const icons = ['timer', 'trash', 'invites', 'block', 'leave', 'down']; const onClick = action('onClick'); return icons.map(icon => ( )); });