import * as React from 'react'; import PropTypes from 'prop-types'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemText from '@mui/material/ListItemText'; import Typography from '@mui/material/Typography'; const products = [ { name: 'Professional plan', desc: 'Monthly subscription', price: '$15.00', }, { name: 'Dedicated support', desc: 'Included in the Professional plan', price: 'Free', }, { name: 'Hardware', desc: 'Devices needed for development', price: '$69.99', }, { name: 'Landing page template', desc: 'License', price: '$49.99', }, ]; function Info({ totalPrice }) { return ( Total {totalPrice} {products.map((product) => ( {product.price} ))} ); } Info.propTypes = { totalPrice: PropTypes.string.isRequired, }; export default Info;