14 lines
		
	
	
		
			397 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			397 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { MantineProvider } from '@mantine/core';
 | |
| import '@mantine/core/styles.css';
 | |
| 
 | |
| export function PreviewDecorator(Story: any, { parameters }: any) {
 | |
|   console.log('Rendering decorator', parameters);
 | |
|   return (
 | |
|     <MantineProvider>
 | |
|       <div style={{ height: 'calc(100vh - 64px)', width: 'calc(100vw - 64px)' }}>
 | |
|         <Story key={'mainStory'} />
 | |
|       </div>
 | |
|     </MantineProvider>
 | |
|   );
 | |
| }
 |