signal-desktop/ts/components/SafetyTipsModal.stories.tsx
2024-03-12 09:29:31 -07:00

24 lines
784 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { action } from '@storybook/addon-actions';
import enMessages from '../../_locales/en/messages.json';
import type { ComponentMeta } from '../storybook/types';
import { setupI18n } from '../util/setupI18n';
import type { SafetyTipsModalProps } from './SafetyTipsModal';
import { SafetyTipsModal } from './SafetyTipsModal';
const i18n = setupI18n('en', enMessages);
export default {
title: 'Components/SafetyTipsModal',
component: SafetyTipsModal,
args: {
i18n,
onClose: action('onClose'),
},
} satisfies ComponentMeta<SafetyTipsModalProps>;
export function Default(args: SafetyTipsModalProps): JSX.Element {
return <SafetyTipsModal {...args} />;
}