index.js 416 B

1234567891011121314
  1. import * as React from "react";
  2. import Typography from "@material-ui/core/Typography";
  3. import RangeChart from "./rangeChart";
  4. const CloudCostChart = ({ graphData, currency, n, height }) => {
  5. if (graphData.length === 0) {
  6. return <Typography variant="body2">No data</Typography>;
  7. }
  8. return <RangeChart data={graphData} currency={currency} height={height} />;
  9. };
  10. export default React.memo(CloudCostChart);