From 9e8f6c01b27618ee38b0c1f9fe84074dd7ce2d39 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Mon, 2 May 2022 19:48:56 -0700 Subject: [PATCH] doc: add Card, CardContent, and Typography from material-ui and return statements --- src/InfoBox.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/InfoBox.js b/src/InfoBox.js index e69de29..30176b2 100644 --- a/src/InfoBox.js +++ b/src/InfoBox.js @@ -0,0 +1,23 @@ +import React from "react"; +import "./InfoBox.css"; +import { Card, CardContent, Typography } from "@material-ui/core"; + +function InfoBox({ title, cases, total }) { + return ( + + + + {title} + + +

{cases}

+ + + {total} Total + +
+
+ ); +} + +export default InfoBox; \ No newline at end of file