mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Poll create modal
This commit is contained in:
23
ts/components/PollCreateModal.dom.stories.tsx
Normal file
23
ts/components/PollCreateModal.dom.stories.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2025 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';
|
||||
import type { PollCreateModalProps } from './PollCreateModal.dom.js';
|
||||
import { PollCreateModal } from './PollCreateModal.dom.js';
|
||||
|
||||
const { i18n } = window.SignalContext;
|
||||
|
||||
export default {
|
||||
title: 'Components/PollCreateModal',
|
||||
} satisfies Meta<PollCreateModalProps>;
|
||||
|
||||
const onClose = action('onClose');
|
||||
const onSendPoll = action('onSendPoll');
|
||||
|
||||
export function Default(): JSX.Element {
|
||||
return (
|
||||
<PollCreateModal i18n={i18n} onClose={onClose} onSendPoll={onSendPoll} />
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user