import React, { useState } from "react";
import ModalDialog from ".";
import Button from "../button";
export default {
title: "Components/ModalDialog",
component: ModalDialog,
parameters: {
docs: {
description: {
component: "ModalDialog is used for displaying modal dialogs",
},
},
},
argTypes: {
onClick: { action: "onClick" },
onClose: { action: "onClose" },
onOk: { action: "onOk", table: { disable: true } },
},
};
const Template = ({ onClick, onClose, onOk, ...args }) => {
const [isVisible, setIsVisible] = useState(false);
const toggleVisible = (e) => {
setIsVisible(!isVisible);
};
return (
<>
{"Change password"}
Send the password change instruction to the{" "}
asc@story.book email address
>
);
};
export const Default = Template.bind({});
Default.args = {
scale: false,
displayType: "aside",
zIndex: 310,
headerContent: "Change password",
};