2022-07-21 00:07:09 +00:00
|
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import type { Meta, Story } from '@storybook/react';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import type { PropsType } from './SignalConnectionsModal';
|
|
|
|
import enMessages from '../../_locales/en/messages.json';
|
|
|
|
import { SignalConnectionsModal } from './SignalConnectionsModal';
|
|
|
|
import { setupI18n } from '../util/setupI18n';
|
|
|
|
|
|
|
|
const i18n = setupI18n('en', enMessages);
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/SignalConnectionsModal',
|
|
|
|
component: SignalConnectionsModal,
|
|
|
|
argTypes: {
|
|
|
|
i18n: {
|
|
|
|
defaultValue: i18n,
|
|
|
|
},
|
|
|
|
onClose: { action: true },
|
|
|
|
},
|
|
|
|
} as Meta;
|
|
|
|
|
2022-11-18 00:45:19 +00:00
|
|
|
// eslint-disable-next-line react/function-component-definition
|
2022-07-21 00:07:09 +00:00
|
|
|
const Template: Story<PropsType> = args => <SignalConnectionsModal {...args} />;
|
|
|
|
|
|
|
|
export const Modal = Template.bind({});
|
|
|
|
Modal.args = {};
|