import React, { useState } from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Modal, Button } from 'antd'; const Usage = () => { const [isModalVisible, setIsModalVisible] = useState(false); const showModal = () => { setIsModalVisible(true); }; const handleOk = () => { setIsModalVisible(false); }; const handleCancel = () => { setIsModalVisible(false); }; return ( <>

Some contents...

Some contents...

Some contents...

); }; export default { title: 'owncast/Modal', component: Modal, parameters: {}, } as ComponentMeta; // eslint-disable-next-line @typescript-eslint/no-unused-vars const Template: ComponentStory = args => ; export const Basic = Template.bind({}); Usage.propTypes = {}; Usage.defaultProps = {};