27 lines
920 B
TypeScript
27 lines
920 B
TypeScript
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import React from 'react';
|
|
import { action } from '@storybook/addon-actions';
|
|
import type { ComponentMeta } from '../storybook/types';
|
|
import { setupI18n } from '../util/setupI18n';
|
|
import enMessages from '../../_locales/en/messages.json';
|
|
import type { Props } from './CallNeedPermissionScreen';
|
|
import { CallNeedPermissionScreen } from './CallNeedPermissionScreen';
|
|
import { getDefaultConversation } from '../test-both/helpers/getDefaultConversation';
|
|
|
|
const i18n = setupI18n('en', enMessages);
|
|
|
|
export default {
|
|
title: 'Components/CallNeedPermissionScreen',
|
|
component: CallNeedPermissionScreen,
|
|
args: {
|
|
i18n,
|
|
close: action('close'),
|
|
conversation: getDefaultConversation(),
|
|
},
|
|
} satisfies ComponentMeta<Props>;
|
|
|
|
export function Default(args: Props): JSX.Element {
|
|
return <CallNeedPermissionScreen {...args} />;
|
|
}
|