mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-06-05 06:23:09 +01:00
38e6bd911c
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
25 lines
699 B
TypeScript
25 lines
699 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { JSX } from 'react';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
import type { Meta } from '@storybook/react';
|
|
import type { PollCreateModalProps } from './PollCreateModal.dom.tsx';
|
|
import { PollCreateModal } from './PollCreateModal.dom.tsx';
|
|
|
|
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} />
|
|
);
|
|
}
|