import React from 'react'; import Modal from '.'; import Block from '@techytools/ui/components/Block'; import Button from '@techytools/ui/components/Button'; import Input from '@techytools/ui/components/Input'; import CanvasContainer from '@techytools/ui/.storybook/components/CanvasContainer'; import useShowStorybookCode from '@techytools/ui/hooks/useShowStorybookCode'; import CanvasStoryPadding from '@techytools/ui/.storybook/components/CanvasStoryPadding'; export default (props: any) => { useShowStorybookCode(); const [isOpen, set_isOpen] = React.useState(false); const handleOpen = () => set_isOpen(true); const handleClose = () => set_isOpen(false); return (

This is a title inside the modal

This could be a bit of text for a quick dialog, or a whole article for the user to read and sign.

); }; export const code = `import Modal from '@techytools/ui/components/Modal'; const [isOpen, set_isOpen] = React.useState(false); const handleOpen = () => set_isOpen(true); const handleClose = () => set_isOpen(false);

This is a title inside the modal

This could be a bit of text for a quick dialog, or a whole article for the user to read and sign.

`;