mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 08:13:37 +01:00
31 lines
890 B
TypeScript
31 lines
890 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
import React, { type ComponentProps } from 'react';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
import { LowDiskSpaceBackupImportModal } from './LowDiskSpaceBackupImportModal.dom.tsx';
|
|
import { MEBIBYTE } from '../types/AttachmentSize.std.ts';
|
|
|
|
const { i18n } = window.SignalContext;
|
|
|
|
type PropsType = ComponentProps<typeof LowDiskSpaceBackupImportModal>;
|
|
|
|
export default {
|
|
title: 'Components/LowDiskSpaceBackupImportModal',
|
|
component: LowDiskSpaceBackupImportModal,
|
|
args: {
|
|
i18n,
|
|
onClose: action('close'),
|
|
bytesNeeded: 1540 * MEBIBYTE,
|
|
},
|
|
} satisfies Meta<PropsType>;
|
|
|
|
const Template: StoryFn<PropsType> = args => (
|
|
<LowDiskSpaceBackupImportModal {...args} />
|
|
);
|
|
|
|
export const Modal = Template.bind({});
|
|
Modal.args = {};
|