jsx import { jsx } from "@emotion/core" ; import { Story , Meta } from "@storybook/react/types-6-0" ; import { QnaCommentItem , QnaCommentItemProps , } from "../../components/qna/QnaCommentItem" ; import { generateComments } from "./generator" ; export default { title : "qna/QnaCommentItem" , component : QnaCommentItem , } as Meta ; const Template = ( args ) => ( < QnaCommentItem { ... args } / > ) ; export const Default = Template . bind ( { } ) ; Default . args = { comment : generateComments ( 1 ) [ 0 ] , } ;