import { ComponentMeta, ComponentStory } from "@storybook/react"; import { Col, Row } from "antd"; import React, { useState } from "react"; import { Button, Modal } from "../Starship"; import "../Styles/index.scss"; // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export export default { title: "Example/Modal", component: Modal, // More on argTypes: https://storybook.js.org/docs/react/api/argtypes } as ComponentMeta; // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args const Template: ComponentStory = (args) => { const [showModal, setShowModal] = useState(false); return ( <> {/* primary button only text */} { setShowModal(false); }} onOk={() => { setShowModal(false); }} visible={showModal} {...args} >

Some contents...

Some contents...

Some contents...

{/* primary button only text */} ); }; export const StarshipModal = Template.bind({}); // More on args: https://storybook.js.org/docs/react/writing-stories/args StarshipModal.args = { title: "Starship Modal" };