import React from 'react'; import { StoryFn, Meta } from '@storybook/react'; import { useArgs } from '@storybook/client-api'; import { Button } from '../../../component-library'; import SRPQuiz from '.'; export default { title: 'Components/App/SRPQuizModal', component: SRPQuiz, argTypes: { isShowingModal: { control: 'boolean', }, }, } as Meta; export const DefaultStory: StoryFn = () => { const [{ isShowingModal }, updateArgs] = useArgs(); return ( <> {isShowingModal && ( updateArgs({ isShowingModal: false })} /> )} ); }; DefaultStory.storyName = 'Default';