import React , { useState } from "react" ; import { Story , Meta } from "@storybook/react/types-6-0" ; import { MarkdownEditor } from "../../components/write/MarkdownEditor" ; export default { title : "write/MarkdownEditor" , component : MarkdownEditor , } as Meta ; const Template = ( args ) => { const [ text , setText ] = useState ( "" ) ; return < MarkdownEditor text = { text } onChange = { setText } { ... args } />; } ; export const Default = Template . bind ( { } ) ; Default . args = { } ;