import React from 'react'; import { Meta, Story } from '@storybook/react'; import { Preview, PreviewProps } from './Preview'; import { HMSThemeProvider } from '../../hooks/HMSThemeProvider'; const meta: Meta = { title: 'Preview', component: Preview, }; export default meta; const DarkTemplate: Story = args => { return (
); }; const LightTemplate: Story = args => { return (
); }; export const Default = DarkTemplate.bind({}); Default.args = { joinOnClick: values => alert(`Join Clicked, Submitted Values: ${JSON.stringify(values, null, 1)}`), config: { authToken: 'token', userName: 'username', }, classes: { joinButton: { rootEmphasized: 'bg-yellow-500', }, }, }; export const Light = LightTemplate.bind({}); Light.args = { joinOnClick: values => alert(`Join Clicked, Submitted Values: ${JSON.stringify(values, null, 1)}`), config: { authToken: 'token', userName: 'username', }, };