Files
Desktop/ts/components/conversation/InlineNotificationWrapper.dom.stories.tsx
automated-signal e85a9e7cba Timeline: Include all item types in Select Mode
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2026-04-01 06:36:37 +10:00

41 lines
1.2 KiB
TypeScript

// Copyright 2026 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import type { Meta } from '@storybook/react';
import { InlineNotificationWrapper } from './InlineNotificationWrapper.dom.js';
import { action } from '@storybook/addon-actions';
import { tw } from '../../axo/tw.dom.js';
import type { Props } from './InlineNotificationWrapper.dom.js';
export default {
title: 'Components/Conversation/InlineNotificationWrapper',
args: {
conversationId: 'cId1',
isTargeted: false,
isSelected: false,
targetMessage: action('targetMessage'),
toggleSelectMessage: action('toggleSelectMessage'),
children: (
<div className={tw('p-2.5 text-center')}>
This is the default contents
</div>
),
},
} satisfies Meta<Props>;
export function Default(args: Props): React.JSX.Element {
return <InlineNotificationWrapper {...args} />;
}
export function SelectMode(args: Props): React.JSX.Element {
return <InlineNotificationWrapper {...args} isSelectMode />;
}
export function SelectModeAndSelected(args: Props): React.JSX.Element {
return <InlineNotificationWrapper {...args} isSelectMode isSelected />;
}