signal-desktop/ts/components/About.stories.tsx

35 lines
797 B
TypeScript
Raw Normal View History

2024-11-05 18:05:24 -08:00
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { action } from '@storybook/addon-actions';
import type { ComponentMeta } from '../storybook/types';
import type { AboutProps } from './About';
import { About } from './About';
2025-03-13 12:52:08 -07:00
const { i18n } = window.SignalContext;
2024-11-05 18:05:24 -08:00
export default {
title: 'Components/About',
component: About,
parameters: {
layout: 'fullscreen',
},
args: {
i18n,
closeAbout: action('showWhatsNewModal'),
appEnv: 'production',
platform: 'darwin',
arch: 'arm64',
version: '1.2.3',
},
} satisfies ComponentMeta<AboutProps>;
export function Basic(args: AboutProps): JSX.Element {
return (
<div style={{ height: '100vh' }}>
<About {...args} />
</div>
);
}