mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 19:19:06 +03:00
22 lines
602 B
TypeScript
22 lines
602 B
TypeScript
import React, { useState } from 'react';
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
import { Modal, Button } from 'antd';
|
|
|
|
const Usage = () => (
|
|
<Modal title="Basic Modal" visible>
|
|
<p>Some contents...</p>
|
|
<p>Some contents...</p>
|
|
<p>Some contents...</p>
|
|
</Modal>
|
|
);
|
|
|
|
export default {
|
|
title: 'owncast/Modal container',
|
|
component: Modal,
|
|
parameters: {},
|
|
} as ComponentMeta<typeof Modal>;
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
const Template: ComponentStory<typeof Modal> = args => <Usage />;
|
|
|
|
export const Example = Template.bind({});
|