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 = { name: 'Aditya Gupta', joinOnClick: ({ audioMuted, videoMuted }) => alert(`Join Clicked, audio and video mute are ${audioMuted} ${videoMuted}`), goBackOnClick: () => alert('Go Back Clicked'), }; export const Light = LightTemplate.bind({}); Default.args = { name: 'Aditya Gupta', joinOnClick: ({ audioMuted, videoMuted }) => alert(`Join Clicked, audio and video mute are ${audioMuted} ${videoMuted}`), goBackOnClick: () => alert('Go Back Clicked'), };