13 lines
288 B
JavaScript
13 lines
288 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
export const Plot = ({ plot }) => {
|
|
if (plot === "") {
|
|
return null;
|
|
}
|
|
|
|
return <span className="text text-break plot">{plot}</span>;
|
|
};
|
|
Plot.propTypes = { plot: PropTypes.string };
|
|
Plot.defaultProps = { plot: "" };
|