2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-02-12 21:30:58 +00:00
|
|
|
import * as React from 'react';
|
2023-10-11 19:06:43 +00:00
|
|
|
import type { Meta } from '@storybook/react';
|
|
|
|
import type { PropsType } from './DialogExpiredBuild';
|
2021-08-19 22:56:29 +00:00
|
|
|
import { DialogExpiredBuild } from './DialogExpiredBuild';
|
2021-09-18 00:30:08 +00:00
|
|
|
import { setupI18n } from '../util/setupI18n';
|
2020-02-12 21:30:58 +00:00
|
|
|
import enMessages from '../../_locales/en/messages.json';
|
2021-10-12 23:59:08 +00:00
|
|
|
import { WidthBreakpoint } from './_util';
|
|
|
|
import { FakeLeftPaneContainer } from '../test-both/helpers/FakeLeftPaneContainer';
|
2020-02-12 21:30:58 +00:00
|
|
|
|
|
|
|
const i18n = setupI18n('en', enMessages);
|
|
|
|
|
2022-06-07 00:48:02 +00:00
|
|
|
export default {
|
|
|
|
title: 'Components/DialogExpiredBuild',
|
2023-10-11 19:06:43 +00:00
|
|
|
argTypes: {},
|
|
|
|
args: {},
|
|
|
|
} satisfies Meta<PropsType>;
|
2020-02-12 21:30:58 +00:00
|
|
|
|
2023-10-11 19:06:43 +00:00
|
|
|
export function Basic(): JSX.Element {
|
|
|
|
const containerWidthBreakpoint = WidthBreakpoint.Wide;
|
2022-06-07 00:48:02 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<FakeLeftPaneContainer containerWidthBreakpoint={containerWidthBreakpoint}>
|
|
|
|
<DialogExpiredBuild
|
2021-10-12 23:59:08 +00:00
|
|
|
containerWidthBreakpoint={containerWidthBreakpoint}
|
2022-06-07 00:48:02 +00:00
|
|
|
i18n={i18n}
|
|
|
|
/>
|
|
|
|
</FakeLeftPaneContainer>
|
|
|
|
);
|
2023-10-11 19:06:43 +00:00
|
|
|
}
|