// Copyright 2024 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import type { Meta, StoryFn } from '@storybook/react'; import { setupI18n } from '../util/setupI18n'; import enMessages from '../../_locales/en/messages.json'; import type { PropsType } from './BackupImportScreen'; import { BackupImportScreen } from './BackupImportScreen'; const i18n = setupI18n('en', enMessages); export default { title: 'Components/BackupImportScreen', } satisfies Meta; // eslint-disable-next-line react/function-component-definition const Template: StoryFn = (args: PropsType) => ( ); export const NoBytes = Template.bind({}); NoBytes.args = { currentBytes: undefined, totalBytes: undefined, }; export const Bytes = Template.bind({}); Bytes.args = { currentBytes: 500, totalBytes: 1024, };