File size: 574 Bytes
4d35814
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script module>
	import { defineMeta } from '@storybook/addon-svelte-csf';
	import { ChatSettingsDialog } from '$lib/components/app';
	import { fn } from 'storybook/test';

	const { Story } = defineMeta({
		title: 'Components/ChatSettingsDialog',
		component: ChatSettingsDialog,
		parameters: {
			layout: 'fullscreen'
		},
		argTypes: {
			open: {
				control: 'boolean',
				description: 'Whether the dialog is open'
			}
		},
		args: {
			onOpenChange: fn()
		}
	});
</script>

<Story name="Open" args={{ open: true }} />

<Story name="Closed" args={{ open: false }} />