29 lines
		
	
	
	
		
			773 B
			
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			773 B
			
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// Copyright 2021 Signal Messenger, LLC
 | 
						|
// SPDX-License-Identifier: AGPL-3.0-only
 | 
						|
 | 
						|
import React from 'react';
 | 
						|
import { action } from '@storybook/addon-actions';
 | 
						|
 | 
						|
import type { ComponentProps } from 'react';
 | 
						|
import type { Meta } from '@storybook/react';
 | 
						|
 | 
						|
import { ProfileMovedModal } from './ProfileMovedModal.js';
 | 
						|
import { ThemeType } from '../types/Util.js';
 | 
						|
 | 
						|
import type { PropsType } from './ProfileMovedModal.js';
 | 
						|
 | 
						|
const { i18n } = window.SignalContext;
 | 
						|
 | 
						|
export default {
 | 
						|
  title: 'Components/ProfileMovedModal',
 | 
						|
} satisfies Meta<PropsType>;
 | 
						|
 | 
						|
const defaultProps: ComponentProps<typeof ProfileMovedModal> = {
 | 
						|
  i18n,
 | 
						|
  theme: ThemeType.light,
 | 
						|
  onClose: action('onClose'),
 | 
						|
};
 | 
						|
 | 
						|
export function Default(): JSX.Element {
 | 
						|
  return <ProfileMovedModal {...defaultProps} />;
 | 
						|
}
 |