import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Modal } from './Modal'; export default { title: 'owncast/Modals/Container', component: Modal, parameters: { docs: { description: { component: `This is the popup modal container that all modal content is rendered inside. It can be passed content nodes to render, or a URL to show an iframe.`, }, }, }, } 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', };