import React from "react"; import PropTypes from "prop-types"; export const Plot = ({ plot }) => { if (plot === "") { return null; } return ( {plot} ); }; Plot.propTypes = { plot: PropTypes.string }; Plot.defaultProps = { plot: "" };