// Copyright 2020 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; import { action } from '@storybook/addon-actions'; import { DialogRelink } from './DialogRelink'; import { setupI18n } from '../util/setupI18n'; import enMessages from '../../_locales/en/messages.json'; import { WidthBreakpoint } from './_util'; import { FakeLeftPaneContainer } from '../test-both/helpers/FakeLeftPaneContainer'; const i18n = setupI18n('en', enMessages); const defaultProps = { containerWidthBreakpoint: WidthBreakpoint.Wide, i18n, relinkDevice: action('relink-device'), }; const permutations = [ { title: 'Unlinked (wide container)', props: { containerWidthBreakpoint: WidthBreakpoint.Wide, }, }, { title: 'Unlinked (narrow container)', props: { containerWidthBreakpoint: WidthBreakpoint.Narrow, }, }, ]; export default { title: 'Components/DialogRelink', }; export function Iterations(): JSX.Element { return ( <> {permutations.map(({ props, title }) => ( <>

{title}

))} ); }