import React, { useState } from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import Modal from '../components/ui/Modal/Modal'; export default { title: 'owncast/Modal container', component: Modal, parameters: {}, } as ComponentMeta; const Template: ComponentStory = args => { const { children } = args; return {children}; }; export const Example = Template.bind({}); Example.args = { title: 'Modal example with content nodes', visible: true, children:
Test 123
, }; export const UrlExample = Template.bind({}); UrlExample.args = { title: 'Modal example with URL', visible: true, url: 'https://owncast.online', };