// @flow import * as React from "react"; import { Box, Typography } from "@material-ui/core"; import { Paragraph } from "./types"; import CheckIcon from "@material-ui/icons/Check"; type Props = { paragraph: Paragraph; }; const ParagraphContent = (props: Props) => { const { paragraph: { title, content, list }, } = props; return ( {title ? ( {title} ) : ( "" )} {content} {list ? ( {list.map((text, index) => ( {text} ))} ) : ( "" )} ); }; export default ParagraphContent;