import React, { useState } from 'react'; import { Meta, Story } from '@storybook/react'; import { Settings, SettingsProps } from './Settings'; import { HMSThemeProvider } from '../../hooks/HMSThemeProvider'; const meta: Meta = { title: 'Settings', component: Settings, parameters: { controls: { expanded: true }, }, }; export default meta; const Template: Story = (args: SettingsProps) => { const [maxTileCount, setMaxTileCount] = useState(8); return (
{ alert(JSON.stringify(props)); }} />
); }; export const Default = Template.bind({}); const LightThemeTemplate: Story = (args: SettingsProps) => { const [maxTileCount, setMaxTileCount] = useState(8); return (
{ alert(JSON.stringify(props)); }} />
); }; export const LightTheme = LightThemeTemplate.bind({});